Skip to content

Commit

Permalink
Windows build. See #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmaury committed Mar 27, 2017
1 parent 527c9c6 commit 221eeb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ repositories {
dependencies {
compile 'com.eclipsesource.j2v8:j2v8_macosx_x86_64:4.6.0'
compile 'com.eclipsesource.j2v8:j2v8_linux_x86_64:4.6.0'
compile 'com.eclipsesource.j2v8:j2v8_win32_x86_64:4.6.0'
compile 'com.github.ajermakovics:jvmtop:0.8.2'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
Expand All @@ -42,6 +43,8 @@ startScripts {
unixScriptFile.text = unixScriptFile.text.replace('$APP_HOME/lib/tools.jar', '$JAVA_HOME/lib/tools.jar')
unixScriptFile.text = unixScriptFile.text.replace('exec ', 'cd $APP_HOME;\nexec ')
unixScriptFile.text = unixScriptFile.text.replace('exec ', '[ -f $JAVA_HOME/lib/tools.jar ] || echo \'$JAVA_HOME/lib/tools.jar not found\';\nexec ')
def windowsScriptFile = file getWindowsScript()
windowsScriptFile.text = windowsScriptFile.text.replace('%APP_HOME%\\lib\\tools.jar', '%JAVA_HOME%\\lib\\tools.jar')
}
}

Expand Down

0 comments on commit 221eeb9

Please sign in to comment.