We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0f847 commit 53a7a3eCopy full SHA for 53a7a3e
java8/build.gradle
@@ -1,4 +1,6 @@
1
2
+import org.apache.tools.ant.taskdefs.condition.Os
3
+
4
apply plugin: 'java'
5
6
apply from: "$rootDir/lib.gradle"
@@ -24,7 +26,8 @@ compileJava {
24
26
if (jh == null) {
25
27
throw new Exception("JAVA8_HOME environment variable not set")
28
}
29
+ def extension = Os.isFamily(Os.FAMILY_WINDOWS) ? ".exe" : ""
30
options.fork = true
- options.forkOptions.executable = "$jh/bin/javac"
31
+ options.forkOptions.executable = "$jh$extension/bin/javac"
32
33
0 commit comments