Merge pull request #14623 from nik9000/no_home_home

Use always set java.home
This commit is contained in:
Nik Everett 2015-11-09 08:15:58 -05:00
commit cf8ffd32ac
1 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ class ClusterFormationTasks {
onlyIf { pidFile.exists() }
// the pid file won't actually be read until execution time, since the read is wrapped within an inner closure of the GString
ext.pid = "${ -> pidFile.getText('UTF-8').trim()}"
commandLine new File(System.getenv('JAVA_HOME'), 'bin/jps'), '-l'
commandLine new File(System.getProperty('java.home'), 'bin/jps'), '-l'
standardOutput = new ByteArrayOutputStream()
doLast {
String out = standardOutput.toString()
@ -336,4 +336,4 @@ class ClusterFormationTasks {
static File pidFile(File dir) {
return new File(dir, 'es.pid')
}
}
}