Revert "Merge pull request #14623 from nik9000/no_home_home"
This reverts commitcf8ffd32ac
, reversing changes made to40650ad2d5
.
This commit is contained in:
parent
43b729f34c
commit
013347be9b
|
@ -279,7 +279,7 @@ class ClusterFormationTasks {
|
||||||
onlyIf { pidFile.exists() }
|
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
|
// 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()}"
|
ext.pid = "${ -> pidFile.getText('UTF-8').trim()}"
|
||||||
commandLine new File(System.getProperty('java.home'), 'bin/jps'), '-l'
|
commandLine new File(System.getenv('JAVA_HOME'), 'bin/jps'), '-l'
|
||||||
standardOutput = new ByteArrayOutputStream()
|
standardOutput = new ByteArrayOutputStream()
|
||||||
doLast {
|
doLast {
|
||||||
String out = standardOutput.toString()
|
String out = standardOutput.toString()
|
||||||
|
@ -336,4 +336,4 @@ class ClusterFormationTasks {
|
||||||
static File pidFile(File dir) {
|
static File pidFile(File dir) {
|
||||||
return new File(dir, 'es.pid')
|
return new File(dir, 'es.pid')
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue