Author: tom.baeyens(a)jboss.com
Date: 2009-04-27 16:45:45 -0400 (Mon, 27 Apr 2009)
New Revision: 4644
Modified:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/ant/StartJBossTask.java
Log:
added . before the start jboss task when os is linux
Modified:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/ant/StartJBossTask.java
===================================================================
---
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/ant/StartJBossTask.java 2009-04-27
20:37:05 UTC (rev 4643)
+++
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/ant/StartJBossTask.java 2009-04-27
20:45:45 UTC (rev 4644)
@@ -42,7 +42,10 @@
if ( os.indexOf( "windows" ) != -1 ) {
command = getJBossHome() + fileSeparator + "bin" + fileSeparator +
"run.bat " + getConfigParameter();
} else if ( os.indexOf( "linux" ) != -1 ) {
- command = getJBossHome() + fileSeparator + "bin" + fileSeparator +
"run.sh " + getConfigParameter();
+ command = getJBossHome() + fileSeparator + "bin" + fileSeparator +
"run.sh " + getConfigParameter();
+ if (command.startsWith("/")) {
+ command = "."+command;
+ }
} else {
throw new BuildException( "os '" + os + "' not supported
in the startjboss task." );
}
Show replies by date