[jbpm-commits] JBoss JBPM SVN: r4644 - jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/ant.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Apr 27 16:45:45 EDT 2009


Author: tom.baeyens at 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." );
       }




More information about the jbpm-commits mailing list