Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20367

Gradle 2.12 upto Gradle 3.5: Problem of Gradle Daemon with environment variables (Just tested on windows 7, Testcases [Gradle and Batch files] are added)

$
0
0

I ran into this specific problem now recently, and it was causing random problems which was hard to pinpoint. We have gradle custom tasks that executes java code with parameters (instead of using a main), the library called in this code relied on some updated environment variables.

After some serious bug hunting, we started to suspect that the environment wasn’t properly transferred/updated from gradle to the java code (and its sub processes). When we finally we disabled daemon with --no-daemon everything worked.

This was with gradle 6.3. Would like to see that the env was consistent between the daemon and the launcher…


Viewing all articles
Browse latest Browse all 20367

Trending Articles