GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add .exe to external javac 8 under windows · cloudbank/functionaljava@53a7a3e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java8
    • build.gradle
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java8/build.gradle‎

Copy file name to clipboardExpand all lines: java8/build.gradle
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
import org.apache.tools.ant.taskdefs.condition.Os
3+
24
apply plugin: 'java'
35

46
apply from: "$rootDir/lib.gradle"
@@ -24,7 +26,8 @@ compileJava {
2426
if (jh == null) {
2527
throw new Exception("JAVA8_HOME environment variable not set")
2628
}
29+
def extension = Os.isFamily(Os.FAMILY_WINDOWS) ? ".exe" : ""
2730
options.fork = true
28-
options.forkOptions.executable = "$jh/bin/javac"
31+
options.forkOptions.executable = "$jh$extension/bin/javac"
2932
}
3033

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.