mirror of https://github.com/apache/activemq.git
did some more svn:eol-style property setting
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379624 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d00a1a311
commit
be2ae6669b
|
@ -1,119 +1,119 @@
|
|||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM $Id: activemq.bat,v 1.1.1.1 2005/03/11 21:14:04 jstrachan Exp $
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
set SUNJMX=
|
||||
REM set SUNJMX=-Dcom.sun.management.jmxremote.port=1616 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="start"
|
||||
"%_JAVACMD%" %SUNJMX% %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Dactivemq.home="%ACTIVEMQ_HOME%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM $Id: activemq.bat,v 1.1.1.1 2005/03/11 21:14:04 jstrachan Exp $
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
set SUNJMX=
|
||||
REM set SUNJMX=-Dcom.sun.management.jmxremote.port=1616 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="start"
|
||||
"%_JAVACMD%" %SUNJMX% %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Dactivemq.home="%ACTIVEMQ_HOME%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="browse"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="browse"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
|
|
|
@ -1,127 +1,127 @@
|
|||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Assume first parameter is broker name
|
||||
set BROKER_NAME=%1
|
||||
if "%BROKER_NAME%" == "" set BROKER_NAME=*
|
||||
shift
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="query"
|
||||
|
||||
rem Select all components that belongs to the specified broker except advisory topics
|
||||
rem and display the specified attributes
|
||||
set QUERY_PARAM=--objname "Type=*,BrokerName=%BROKER_NAME%" "-xQTopic=ActiveMQ.Advisory.*" --view "Type,BrokerName,Destination,ConnectorName,EnqueueCount,DequeueCount,TotalEnqueueCount,TotalDequeueCount,Messages,TotalMessages,ConsumerCount,TotalConsumerCount,DispatchQueueSize"
|
||||
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %QUERY_PARAM% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Assume first parameter is broker name
|
||||
set BROKER_NAME=%1
|
||||
if "%BROKER_NAME%" == "" set BROKER_NAME=*
|
||||
shift
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="query"
|
||||
|
||||
rem Select all components that belongs to the specified broker except advisory topics
|
||||
rem and display the specified attributes
|
||||
set QUERY_PARAM=--objname "Type=*,BrokerName=%BROKER_NAME%" "-xQTopic=ActiveMQ.Advisory.*" --view "Type,BrokerName,Destination,ConnectorName,EnqueueCount,DequeueCount,TotalEnqueueCount,TotalDequeueCount,Messages,TotalMessages,ConsumerCount,TotalConsumerCount,DispatchQueueSize"
|
||||
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %QUERY_PARAM% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="list"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="list"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="query"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="query"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="stop"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
@echo off
|
||||
|
||||
REM ActiveMQ shell script
|
||||
REM
|
||||
REM This script is heavily based on the Ant script
|
||||
REM
|
||||
REM Copyright 2005-2006 The Apache Software Foundation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
||||
|
||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
||||
set DEFAULT_ACTIVEMQ_HOME=
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
||||
|
||||
rem check for activemq in Program Files on system drive
|
||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for activemq in root directory of system drive
|
||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for activemq in C:\activemq for Win9X users
|
||||
if not exist C:\activemq\README.txt goto noAntHome
|
||||
set ACTIVEMQ_HOME=C:\activemq
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
set LOCALCLASSPATH=%CLASSPATH%
|
||||
|
||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto runAnt
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
echo.
|
||||
echo Warning: JAVA_HOME environment variable is not set.
|
||||
echo.
|
||||
|
||||
:runAnt
|
||||
|
||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
|
||||
|
||||
REM Uncomment to enable YourKit profiling
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
||||
|
||||
REM Uncomment to enable remote debugging
|
||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
||||
|
||||
set LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
|
||||
|
||||
set ACTIVEMQ_TASK="stop"
|
||||
"%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath "%LOCALCLASSPATH%" -jar %ACTIVEMQ_HOME%/bin/run.jar %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
||||
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
set LOCALCLASSPATH=
|
||||
set _JAVACMD=
|
||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
|
||||
:mainEnd
|
||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
||||
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
@echo off
|
||||
|
||||
rem $Id: jmeter-n.bat,v 1.3 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
rem ============================================
|
||||
rem Non-GUI version of JMETER.BAT (WinNT/2K only)
|
||||
rem
|
||||
rem Drop a JMX file on this batch script, and it
|
||||
rem will run it in non-GUI mode, with a log file
|
||||
rem formed from the input file name but with the
|
||||
rem extension .jtl
|
||||
rem
|
||||
rem Only the first parameter is used.
|
||||
rem Only works for Win2k.
|
||||
rem
|
||||
rem ============================================
|
||||
|
||||
if "%OS%"=="Windows_NT" goto WinNT
|
||||
echo "Sorry, this command file requires Windows NT/ 2000 / XP"
|
||||
pause
|
||||
goto END
|
||||
:WinNT
|
||||
|
||||
rem Change to directory containing this file, which must be in bin
|
||||
echo Changing to JMeter home directory
|
||||
cd /D %~dp0
|
||||
|
||||
rem Check file is supplied
|
||||
if a == a%1 goto winNT2
|
||||
rem Check it has extension .jmx
|
||||
if a%~x1 == a.jmx goto winNT3
|
||||
:winNT2
|
||||
echo Please supply a script name with the extension .jmx
|
||||
pause
|
||||
goto :EOF
|
||||
:winNT3
|
||||
|
||||
jmeter -n -t %1 -l %~dpn1.jtl
|
||||
|
||||
@echo off
|
||||
|
||||
rem $Id: jmeter-n.bat,v 1.3 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
rem ============================================
|
||||
rem Non-GUI version of JMETER.BAT (WinNT/2K only)
|
||||
rem
|
||||
rem Drop a JMX file on this batch script, and it
|
||||
rem will run it in non-GUI mode, with a log file
|
||||
rem formed from the input file name but with the
|
||||
rem extension .jtl
|
||||
rem
|
||||
rem Only the first parameter is used.
|
||||
rem Only works for Win2k.
|
||||
rem
|
||||
rem ============================================
|
||||
|
||||
if "%OS%"=="Windows_NT" goto WinNT
|
||||
echo "Sorry, this command file requires Windows NT/ 2000 / XP"
|
||||
pause
|
||||
goto END
|
||||
:WinNT
|
||||
|
||||
rem Change to directory containing this file, which must be in bin
|
||||
echo Changing to JMeter home directory
|
||||
cd /D %~dp0
|
||||
|
||||
rem Check file is supplied
|
||||
if a == a%1 goto winNT2
|
||||
rem Check it has extension .jmx
|
||||
if a%~x1 == a.jmx goto winNT3
|
||||
:winNT2
|
||||
echo Please supply a script name with the extension .jmx
|
||||
pause
|
||||
goto :EOF
|
||||
:winNT3
|
||||
|
||||
jmeter -n -t %1 -l %~dpn1.jtl
|
||||
|
||||
:END
|
|
@ -1,78 +1,78 @@
|
|||
@echo off
|
||||
|
||||
rem $Id: jmeter-server.bat,v 1.11 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
REM Protect environment against changes if possible:
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
rem Need to check if we are using the 4NT shell...
|
||||
rem [Does that support the ~ constructs?]
|
||||
if "%eval[2+2]" == "4" goto winNT1
|
||||
if exist jmeter-server.bat goto winNT1
|
||||
echo Changing to JMeter home directory
|
||||
cd /D %~dp0
|
||||
:winNT1
|
||||
|
||||
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
|
||||
echo Could not find ApacheJmeter_core.jar ...
|
||||
REM Try to work out JMETER_HOME
|
||||
echo ... Trying JMETER_HOME=..
|
||||
set JMETER_HOME=..
|
||||
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
|
||||
echo ... trying JMETER_HOME=.
|
||||
set JMETER_HOME=.
|
||||
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
|
||||
echo Cannot determine JMETER_HOME !
|
||||
goto exit
|
||||
|
||||
:setCP
|
||||
echo Found ApacheJMeter_core.jar
|
||||
set CLASSPATH=%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib\logkit-1.2.jar
|
||||
START rmiregistry
|
||||
|
||||
if not "%OS%"=="Windows_NT" goto win9xStart
|
||||
:winNTStart
|
||||
|
||||
rem Need to check if we are using the 4NT shell...
|
||||
if "%eval[2+2]" == "4" goto setup4NT
|
||||
|
||||
rem On NT/2K grab all arguments at once
|
||||
set JMETER_CMD_LINE_ARGS=%*
|
||||
goto doneStart
|
||||
|
||||
:setup4NT
|
||||
set JMETER_CMD_LINE_ARGS=%$
|
||||
goto doneStart
|
||||
|
||||
:win9xStart
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number of
|
||||
rem agruments (up to the command line limit, anyway).
|
||||
|
||||
set JMETER_CMD_LINE_ARGS=
|
||||
|
||||
:setupArgs
|
||||
if %1a==a goto doneStart
|
||||
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
:doneStart
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
jmeter -s %JMETER_CMD_LINE_ARGS%
|
||||
|
||||
@echo off
|
||||
|
||||
rem $Id: jmeter-server.bat,v 1.11 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
REM Protect environment against changes if possible:
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
rem Need to check if we are using the 4NT shell...
|
||||
rem [Does that support the ~ constructs?]
|
||||
if "%eval[2+2]" == "4" goto winNT1
|
||||
if exist jmeter-server.bat goto winNT1
|
||||
echo Changing to JMeter home directory
|
||||
cd /D %~dp0
|
||||
:winNT1
|
||||
|
||||
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
|
||||
echo Could not find ApacheJmeter_core.jar ...
|
||||
REM Try to work out JMETER_HOME
|
||||
echo ... Trying JMETER_HOME=..
|
||||
set JMETER_HOME=..
|
||||
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
|
||||
echo ... trying JMETER_HOME=.
|
||||
set JMETER_HOME=.
|
||||
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
|
||||
echo Cannot determine JMETER_HOME !
|
||||
goto exit
|
||||
|
||||
:setCP
|
||||
echo Found ApacheJMeter_core.jar
|
||||
set CLASSPATH=%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib\logkit-1.2.jar
|
||||
START rmiregistry
|
||||
|
||||
if not "%OS%"=="Windows_NT" goto win9xStart
|
||||
:winNTStart
|
||||
|
||||
rem Need to check if we are using the 4NT shell...
|
||||
if "%eval[2+2]" == "4" goto setup4NT
|
||||
|
||||
rem On NT/2K grab all arguments at once
|
||||
set JMETER_CMD_LINE_ARGS=%*
|
||||
goto doneStart
|
||||
|
||||
:setup4NT
|
||||
set JMETER_CMD_LINE_ARGS=%$
|
||||
goto doneStart
|
||||
|
||||
:win9xStart
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number of
|
||||
rem agruments (up to the command line limit, anyway).
|
||||
|
||||
set JMETER_CMD_LINE_ARGS=
|
||||
|
||||
:setupArgs
|
||||
if %1a==a goto doneStart
|
||||
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
:doneStart
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
jmeter -s %JMETER_CMD_LINE_ARGS%
|
||||
|
||||
:exit
|
|
@ -1,77 +1,77 @@
|
|||
@echo off
|
||||
rem $Id: jmeter-t.bat,v 1.3 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
rem ============================================
|
||||
rem
|
||||
rem Drop a JMX file on this batch script, and it
|
||||
rem will load it in the GUI.
|
||||
rem
|
||||
rem Only the first parameter is used.
|
||||
rem Only works for Win2k.
|
||||
rem
|
||||
rem ============================================
|
||||
|
||||
|
||||
if "%OS%"=="Windows_NT" goto WinNT
|
||||
echo "Sorry, this command file requires Windows NT/ 2000"
|
||||
goto END
|
||||
:WinNT
|
||||
|
||||
rem change to the directory in which this script resides, i.e. bin
|
||||
cd %~dp0
|
||||
|
||||
jmeter -t %1
|
||||
|
||||
:END@echo off
|
||||
|
||||
rem $Id: jmeter-t.bat,v 1.3 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
rem ============================================
|
||||
rem
|
||||
rem Drop a JMX file on this batch script, and it
|
||||
rem will load it in the GUI.
|
||||
rem
|
||||
rem Only the first parameter is used.
|
||||
rem Only works for Win2k.
|
||||
rem
|
||||
rem ============================================
|
||||
|
||||
|
||||
if "%OS%"=="Windows_NT" goto WinNT
|
||||
echo "Sorry, this command file requires Windows NT/ 2000 / XP"
|
||||
pause
|
||||
goto END
|
||||
:WinNT
|
||||
|
||||
rem change to the directory in which this script resides, i.e. bin
|
||||
cd /D %~dp0
|
||||
|
||||
jmeter -t %1
|
||||
|
||||
@echo off
|
||||
rem $Id: jmeter-t.bat,v 1.3 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
rem ============================================
|
||||
rem
|
||||
rem Drop a JMX file on this batch script, and it
|
||||
rem will load it in the GUI.
|
||||
rem
|
||||
rem Only the first parameter is used.
|
||||
rem Only works for Win2k.
|
||||
rem
|
||||
rem ============================================
|
||||
|
||||
|
||||
if "%OS%"=="Windows_NT" goto WinNT
|
||||
echo "Sorry, this command file requires Windows NT/ 2000"
|
||||
goto END
|
||||
:WinNT
|
||||
|
||||
rem change to the directory in which this script resides, i.e. bin
|
||||
cd %~dp0
|
||||
|
||||
jmeter -t %1
|
||||
|
||||
:END@echo off
|
||||
|
||||
rem $Id: jmeter-t.bat,v 1.3 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
rem ============================================
|
||||
rem
|
||||
rem Drop a JMX file on this batch script, and it
|
||||
rem will load it in the GUI.
|
||||
rem
|
||||
rem Only the first parameter is used.
|
||||
rem Only works for Win2k.
|
||||
rem
|
||||
rem ============================================
|
||||
|
||||
|
||||
if "%OS%"=="Windows_NT" goto WinNT
|
||||
echo "Sorry, this command file requires Windows NT/ 2000 / XP"
|
||||
pause
|
||||
goto END
|
||||
:WinNT
|
||||
|
||||
rem change to the directory in which this script resides, i.e. bin
|
||||
cd /D %~dp0
|
||||
|
||||
jmeter -t %1
|
||||
|
||||
:END
|
|
@ -1,83 +1,83 @@
|
|||
@echo off
|
||||
|
||||
rem $Id: jmeter.bat,v 1.30 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
|
||||
|
||||
if not "%OS%"=="Windows_NT" goto win9xStart
|
||||
:winNTStart
|
||||
@setlocal
|
||||
|
||||
rem Need to check if we are using the 4NT shell...
|
||||
if "%eval[2+2]" == "4" goto setup4NT
|
||||
|
||||
if exist jmeter.bat goto winNT1
|
||||
echo Changing to JMeter home directory
|
||||
cd /D %~dp0
|
||||
|
||||
:winNT1
|
||||
rem On NT/2K grab all arguments at once
|
||||
set JMETER_CMD_LINE_ARGS=%*
|
||||
goto doneStart
|
||||
|
||||
:setup4NT
|
||||
set JMETER_CMD_LINE_ARGS=%$
|
||||
goto doneStart
|
||||
|
||||
:win9xStart
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number of
|
||||
rem agruments (up to the command line limit, anyway).
|
||||
|
||||
set JMETER_CMD_LINE_ARGS=
|
||||
|
||||
:setupArgs
|
||||
if %1a==a goto doneStart
|
||||
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
:doneStart
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
rem See the unix startup file for the rationale of the following parameters,
|
||||
rem including some tuning recommendations
|
||||
set HEAP=-Xms256m -Xmx256m
|
||||
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
|
||||
set SURVIVOR=-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50%
|
||||
set TENURING=-XX:MaxTenuringThreshold=2
|
||||
set EVACUATION=-XX:MaxLiveObjectEvacuationRatio=20%
|
||||
set RMIGC=-Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000
|
||||
set PERM=-XX:PermSize=64m -XX:MaxPermSize=64m
|
||||
set DEBUG=-verbose:gc -XX:+PrintTenuringDistribution
|
||||
|
||||
rem Additional settings that might help improve GUI performance on some platforms
|
||||
rem See: http://java.sun.com/products/java-media/2D/perf_graphics.html
|
||||
|
||||
set DDRAW=
|
||||
rem Setting this flag to true turns off DirectDraw usage, which sometimes helps to get rid of a lot of rendering problems on Win32.
|
||||
rem set DDRAW=%DDRAW% -Dsun.java2d.noddraw=true
|
||||
|
||||
rem Setting this flag to false turns off DirectDraw offscreen surfaces acceleration by forcing all createVolatileImage calls to become createImage calls, and disables hidden acceleration performed on surfaces created with createImage .
|
||||
rem set DDRAW=%DDRAW% -Dsun.java2d.ddoffscreen=false
|
||||
|
||||
rem Setting this flag to true enables hardware-accelerated scaling.
|
||||
rem set DDRAW=%DDRAW% -Dsun.java2d.ddscale=true
|
||||
|
||||
rem Collect the settings defined above
|
||||
set ARGS=%HEAP% %NEW% %SURVIVOR% %TENURING% %EVACUATION% %RMIGC% %PERM% %DEBUG% %DDRAW%
|
||||
|
||||
%JM_START% %JM_LAUNCH% %JVM_ARGS% %ARGS% -jar ApacheJMeter.jar %JMETER_CMD_LINE_ARGS%
|
||||
@echo off
|
||||
|
||||
rem $Id: jmeter.bat,v 1.30 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
|
||||
|
||||
if not "%OS%"=="Windows_NT" goto win9xStart
|
||||
:winNTStart
|
||||
@setlocal
|
||||
|
||||
rem Need to check if we are using the 4NT shell...
|
||||
if "%eval[2+2]" == "4" goto setup4NT
|
||||
|
||||
if exist jmeter.bat goto winNT1
|
||||
echo Changing to JMeter home directory
|
||||
cd /D %~dp0
|
||||
|
||||
:winNT1
|
||||
rem On NT/2K grab all arguments at once
|
||||
set JMETER_CMD_LINE_ARGS=%*
|
||||
goto doneStart
|
||||
|
||||
:setup4NT
|
||||
set JMETER_CMD_LINE_ARGS=%$
|
||||
goto doneStart
|
||||
|
||||
:win9xStart
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number of
|
||||
rem agruments (up to the command line limit, anyway).
|
||||
|
||||
set JMETER_CMD_LINE_ARGS=
|
||||
|
||||
:setupArgs
|
||||
if %1a==a goto doneStart
|
||||
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
:doneStart
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
rem See the unix startup file for the rationale of the following parameters,
|
||||
rem including some tuning recommendations
|
||||
set HEAP=-Xms256m -Xmx256m
|
||||
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
|
||||
set SURVIVOR=-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50%
|
||||
set TENURING=-XX:MaxTenuringThreshold=2
|
||||
set EVACUATION=-XX:MaxLiveObjectEvacuationRatio=20%
|
||||
set RMIGC=-Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000
|
||||
set PERM=-XX:PermSize=64m -XX:MaxPermSize=64m
|
||||
set DEBUG=-verbose:gc -XX:+PrintTenuringDistribution
|
||||
|
||||
rem Additional settings that might help improve GUI performance on some platforms
|
||||
rem See: http://java.sun.com/products/java-media/2D/perf_graphics.html
|
||||
|
||||
set DDRAW=
|
||||
rem Setting this flag to true turns off DirectDraw usage, which sometimes helps to get rid of a lot of rendering problems on Win32.
|
||||
rem set DDRAW=%DDRAW% -Dsun.java2d.noddraw=true
|
||||
|
||||
rem Setting this flag to false turns off DirectDraw offscreen surfaces acceleration by forcing all createVolatileImage calls to become createImage calls, and disables hidden acceleration performed on surfaces created with createImage .
|
||||
rem set DDRAW=%DDRAW% -Dsun.java2d.ddoffscreen=false
|
||||
|
||||
rem Setting this flag to true enables hardware-accelerated scaling.
|
||||
rem set DDRAW=%DDRAW% -Dsun.java2d.ddscale=true
|
||||
|
||||
rem Collect the settings defined above
|
||||
set ARGS=%HEAP% %NEW% %SURVIVOR% %TENURING% %EVACUATION% %RMIGC% %PERM% %DEBUG% %DDRAW%
|
||||
|
||||
%JM_START% %JM_LAUNCH% %JVM_ARGS% %ARGS% -jar ApacheJMeter.jar %JMETER_CMD_LINE_ARGS%
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
@echo off
|
||||
rem Run JMeter using javaw
|
||||
|
||||
rem $Id: jmeterw.bat,v 1.4 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
set JM_START=start
|
||||
set JM_LAUNCH=javaw.exe
|
||||
call jmeter %*
|
||||
set JM_START=
|
||||
@echo off
|
||||
rem Run JMeter using javaw
|
||||
|
||||
rem $Id: jmeterw.bat,v 1.4 2005/03/18 15:26:54 mstover1 Exp $
|
||||
rem Copyright 2001-2004 The Apache Software Foundation
|
||||
rem
|
||||
rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
rem you may not use this file except in compliance with the License.
|
||||
rem You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing, software
|
||||
rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
rem See the License for the specific language governing permissions and
|
||||
rem limitations under the License.
|
||||
|
||||
set JM_START=start
|
||||
set JM_LAUNCH=javaw.exe
|
||||
call jmeter %*
|
||||
set JM_START=
|
||||
set JM_LAUNCH=
|
Loading…
Reference in New Issue