You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ta...@apache.org on 2016/07/17 10:25:57 UTC
svn commit: r1753051 - /ofbiz/trunk/build.gradle
Author: taher
Date: Sun Jul 17 10:25:57 2016
New Revision: 1753051
URL: http://svn.apache.org/viewvc?rev=1753051&view=rev
Log:
Fix the terminateOfbiz task in gradle to use proper name - OFBIZ-7534
Upon changing the artifacts in OFBIZ-6274 from org.ofbiz to org.apache.ofbiz
the running class is changed from org.ofbiz.base.start.Start to
org.apache.ofbiz.base.start.Start hence fixing it accordingly in the task
Modified:
ofbiz/trunk/build.gradle
Modified: ofbiz/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1753051&r1=1753050&r2=1753051&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Sun Jul 17 10:25:57 2016
@@ -321,7 +321,7 @@ task terminateOfbiz(group: ofbizServer,
description: 'Force termination of any running OFBiz servers, only use if \"--shutdown\" command fails') << {
def os = System.getProperty("os.name").toLowerCase()
if (os.contains("windows")) {
- Runtime.getRuntime().exec("wmic process where \"CommandLine Like \'%org.apache.ofbiz.base.start%\'\" Call Terminate")
+ Runtime.getRuntime().exec("wmic process where \"CommandLine Like \'%org.apache.ofbiz.base.start.Start%\'\" Call Terminate")
} else {
def processOutput = new ByteArrayOutputStream()
exec {
@@ -329,7 +329,7 @@ task terminateOfbiz(group: ofbizServer,
standardOutput = processOutput
}
processOutput.toString().split(System.lineSeparator()).each { line ->
- if(line ==~ /.*org\.ofbiz\.base\.start\.Start.*/) {
+ if(line ==~ /.*org\.apache\.ofbiz\.base\.start\.Start.*/) {
exec { commandLine 'kill', '-9', line.tokenize().first() }
}
}