[jboss-cvs] JBoss Messaging SVN: r7319 - trunk/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 12 09:54:40 EDT 2009


Author: ataylor
Date: 2009-06-12 09:54:39 -0400 (Fri, 12 Jun 2009)
New Revision: 7319

Modified:
   trunk/src/bin/run.bat
   trunk/src/bin/stop.bat
Log:
fixed bat files

Modified: trunk/src/bin/run.bat
===================================================================
--- trunk/src/bin/run.bat	2009-06-12 10:57:09 UTC (rev 7318)
+++ trunk/src/bin/run.bat	2009-06-12 13:54:39 UTC (rev 7319)
@@ -1,12 +1,16 @@
 @ echo off
 setlocal ENABLEDELAYEDEXPANSION
 set JBM_HOME=..
+IF "a%1"== "a" ( 
 set CONFIG_DIR=%JBM_HOME%\config\stand-alone\non-clustered
+) ELSE (
+SET CONFIG_DIR=%1
+)
 set CLASSPATH=%CONFIG_DIR%;%JBM_HOME%\schemas\
-set CLUSTER_PROPS=;
-#you can use the following line if you want to run with different ports
-#set CLUSTER_PROPS="-Djnp.port=1099 -Djnp.rmiPort=1098 -Djnp.host=localhost -Djbm.remoting.netty.host=localhost -Djbm.remoting.netty.port=5445"
-set JVM_ARGS=%CLUSTER_PROPS% -XX:+UseParallelGC  -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Djbm.config.dir=$CONFIG_DIR  -Djava.util.logging.config.file=%CONFIG_DIR%\logging.properties -Dorg.jboss.logging.Logger.pluginClass=org.jboss.messaging.integration.logging.JBMLoggerPlugin -Djava.library.path=.
+set CLUSTER_PROPS=
+REM you can use the following line if you want to run with different ports
+REM set CLUSTER_PROPS="-Djnp.port=1099 -Djnp.rmiPort=1098 -Djnp.host=localhost -Djbm.remoting.netty.host=localhost -Djbm.remoting.netty.port=5445"
+set JVM_ARGS=%CLUSTER_PROPS% -XX:+UseParallelGC  -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Djbm.config.dir=%CONFIG_DIR%  -Djava.util.logging.config.file=%CONFIG_DIR%\logging.properties -Dorg.jboss.logging.Logger.pluginClass=org.jboss.messaging.integration.logging.JBMLoggerPlugin -Djava.library.path=.
 REM export JVM_ARGS="-Xmx512M -Djava.util.logging.config.file=%CONFIG_DIR%\logging.properties -Djbm.config.dir=$CONFIG_DIR  -Dorg.jboss.logging.Logger.pluginClass=org.jboss.messaging.integration.logging.JBMLoggerPlugin -Djava.library.path=. -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
 for /R ..\lib %%A in (*.jar) do (
 SET CLASSPATH=!CLASSPATH!;%%A

Modified: trunk/src/bin/stop.bat
===================================================================
--- trunk/src/bin/stop.bat	2009-06-12 10:57:09 UTC (rev 7318)
+++ trunk/src/bin/stop.bat	2009-06-12 13:54:39 UTC (rev 7319)
@@ -1,3 +1,9 @@
-set JBM_HOME=..
-set CONFIG_DIR=%JBM_HOME%\config\stand-alone\non-clustered
+@ echo off
+setlocal ENABLEDELAYEDEXPANSION
+set JBM_HOME=..
+IF "a%1"== "a" ( 
+set CONFIG_DIR=%JBM_HOME%\config\stand-alone\non-clustered
+) ELSE (
+SET CONFIG_DIR=%1
+)
 dir >> %CONFIG_DIR%\STOP_ME
\ No newline at end of file




More information about the jboss-cvs-commits mailing list