Getting a live view of environment variables (Gradle and JDK 9)

Martin Buchholz martinrb at
Tue May 16 20:37:22 UTC 2017

On Tue, May 16, 2017 at 12:31 PM, Cédric Champeau <cedric.champeau at
> wrote:

> So far the only suitable workaround I can think of is an agent that would
> rewrite `System.getenv` to call our internal APIs. I'll suggest that in our
> next meeting (which is happening 30 mins from now).

Yes, given that you have control over your java processes, I think this is
what you should do, at least medium-term.  Longer-term, figure out some way
to migrate to a strategy that does not involve accessing jdk internals.

More information about the core-libs-dev mailing list