set the eol style so that it matches the platform they are targeted for.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@385593 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-03-13 16:41:38 +00:00
parent 14a1757b87
commit bca8575209
7 changed files with 733 additions and 733 deletions

View File

@ -1,119 +1,119 @@
@echo off @echo off
REM ActiveMQ shell script REM ActiveMQ shell script
REM REM
REM $Id: activemq.bat,v 1.1.1.1 2005/03/11 21:14:04 jstrachan Exp $ REM $Id: activemq.bat,v 1.1.1.1 2005/03/11 21:14:04 jstrachan Exp $
REM REM
REM This script is heavily based on the Ant script REM This script is heavily based on the Ant script
REM REM
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat" if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ACTIVEMQ_HOME=%~dp0.. set DEFAULT_ACTIVEMQ_HOME=%~dp0..
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME% if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
set DEFAULT_ACTIVEMQ_HOME= set DEFAULT_ACTIVEMQ_HOME=
rem Slurp the command line arguments. This loop allows for an unlimited number rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway). rem of arguments (up to the command line limit, anyway).
set ACTIVEMQ_CMD_LINE_ARGS=%1 set ACTIVEMQ_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
shift shift
:setupArgs :setupArgs
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1 set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
shift shift
goto setupArgs goto setupArgs
rem This label provides a place for the argument list loop to break out rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to. rem and for NT handling to skip to.
:doneStart :doneStart
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed 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 rem by the user or the %0 problem on Windows 9x
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
rem check for activemq in Program Files on system drive rem check for activemq in Program Files on system drive
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
goto checkJava goto checkJava
:checkSystemDrive :checkSystemDrive
rem check for activemq in root directory of system drive rem check for activemq in root directory of system drive
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
set ACTIVEMQ_HOME=%SystemDrive%\activemq set ACTIVEMQ_HOME=%SystemDrive%\activemq
goto checkJava goto checkJava
:checkCDrive :checkCDrive
rem check for activemq in C:\activemq for Win9X users rem check for activemq in C:\activemq for Win9X users
if not exist C:\activemq\README.txt goto noAntHome if not exist C:\activemq\README.txt goto noAntHome
set ACTIVEMQ_HOME=C:\activemq set ACTIVEMQ_HOME=C:\activemq
goto checkJava goto checkJava
:noAntHome :noAntHome
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME. echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
goto end goto end
:checkJava :checkJava
set _JAVACMD=%JAVACMD% set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH% set LOCALCLASSPATH=%CLASSPATH%
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
if "%JAVA_HOME%" == "" goto noJavaHome if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt goto runAnt
:noJavaHome :noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo. echo.
echo Warning: JAVA_HOME environment variable is not set. echo Warning: JAVA_HOME environment variable is not set.
echo. echo.
:runAnt :runAnt
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
set SUNJMX= set SUNJMX=
REM set SUNJMX=-Dcom.sun.management.jmxremote.port=1616 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false 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 Uncomment to enable YourKit profiling
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent" REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
REM Uncomment to enable remote debugging 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 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 LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
set ACTIVEMQ_TASK="start" 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% "%_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 goto end
:end :end
set LOCALCLASSPATH= set LOCALCLASSPATH=
set _JAVACMD= set _JAVACMD=
set ACTIVEMQ_CMD_LINE_ARGS= set ACTIVEMQ_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal if "%OS%"=="Windows_NT" @endlocal
:mainEnd :mainEnd
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat" if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"

View File

@ -1,115 +1,115 @@
@echo off @echo off
REM ActiveMQ shell script REM ActiveMQ shell script
REM REM
REM This script is heavily based on the Ant script REM This script is heavily based on the Ant script
REM REM
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat" if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ACTIVEMQ_HOME=%~dp0.. set DEFAULT_ACTIVEMQ_HOME=%~dp0..
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME% if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
set DEFAULT_ACTIVEMQ_HOME= set DEFAULT_ACTIVEMQ_HOME=
rem Slurp the command line arguments. This loop allows for an unlimited number rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway). rem of arguments (up to the command line limit, anyway).
set ACTIVEMQ_CMD_LINE_ARGS=%1 set ACTIVEMQ_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
shift shift
:setupArgs :setupArgs
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1 set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
shift shift
goto setupArgs goto setupArgs
rem This label provides a place for the argument list loop to break out rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to. rem and for NT handling to skip to.
:doneStart :doneStart
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed 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 rem by the user or the %0 problem on Windows 9x
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
rem check for activemq in Program Files on system drive rem check for activemq in Program Files on system drive
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
goto checkJava goto checkJava
:checkSystemDrive :checkSystemDrive
rem check for activemq in root directory of system drive rem check for activemq in root directory of system drive
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
set ACTIVEMQ_HOME=%SystemDrive%\activemq set ACTIVEMQ_HOME=%SystemDrive%\activemq
goto checkJava goto checkJava
:checkCDrive :checkCDrive
rem check for activemq in C:\activemq for Win9X users rem check for activemq in C:\activemq for Win9X users
if not exist C:\activemq\README.txt goto noAntHome if not exist C:\activemq\README.txt goto noAntHome
set ACTIVEMQ_HOME=C:\activemq set ACTIVEMQ_HOME=C:\activemq
goto checkJava goto checkJava
:noAntHome :noAntHome
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME. echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
goto end goto end
:checkJava :checkJava
set _JAVACMD=%JAVACMD% set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH% set LOCALCLASSPATH=%CLASSPATH%
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
if "%JAVA_HOME%" == "" goto noJavaHome if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt goto runAnt
:noJavaHome :noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo. echo.
echo Warning: JAVA_HOME environment variable is not set. echo Warning: JAVA_HOME environment variable is not set.
echo. echo.
:runAnt :runAnt
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
REM Uncomment to enable YourKit profiling REM Uncomment to enable YourKit profiling
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent" REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
REM Uncomment to enable remote debugging 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 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 LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
set ACTIVEMQ_TASK="browse" 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% "%_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 goto end
:end :end
set LOCALCLASSPATH= set LOCALCLASSPATH=
set _JAVACMD= set _JAVACMD=
set ACTIVEMQ_CMD_LINE_ARGS= set ACTIVEMQ_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal if "%OS%"=="Windows_NT" @endlocal
:mainEnd :mainEnd
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat" if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"

View File

@ -1,127 +1,127 @@
@echo off @echo off
REM ActiveMQ shell script REM ActiveMQ shell script
REM REM
REM This script is heavily based on the Ant script REM This script is heavily based on the Ant script
REM REM
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat" if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ACTIVEMQ_HOME=%~dp0.. set DEFAULT_ACTIVEMQ_HOME=%~dp0..
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME% if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
set DEFAULT_ACTIVEMQ_HOME= set DEFAULT_ACTIVEMQ_HOME=
rem Assume first parameter is broker name rem Assume first parameter is broker name
set BROKER_NAME=%1 set BROKER_NAME=%1
if "%BROKER_NAME%" == "" set BROKER_NAME=* if "%BROKER_NAME%" == "" set BROKER_NAME=*
shift shift
rem Slurp the command line arguments. This loop allows for an unlimited number rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway). rem of arguments (up to the command line limit, anyway).
set ACTIVEMQ_CMD_LINE_ARGS=%1 set ACTIVEMQ_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
shift shift
:setupArgs :setupArgs
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1 set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
shift shift
goto setupArgs goto setupArgs
rem This label provides a place for the argument list loop to break out rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to. rem and for NT handling to skip to.
:doneStart :doneStart
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed 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 rem by the user or the %0 problem on Windows 9x
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
rem check for activemq in Program Files on system drive rem check for activemq in Program Files on system drive
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
goto checkJava goto checkJava
:checkSystemDrive :checkSystemDrive
rem check for activemq in root directory of system drive rem check for activemq in root directory of system drive
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
set ACTIVEMQ_HOME=%SystemDrive%\activemq set ACTIVEMQ_HOME=%SystemDrive%\activemq
goto checkJava goto checkJava
:checkCDrive :checkCDrive
rem check for activemq in C:\activemq for Win9X users rem check for activemq in C:\activemq for Win9X users
if not exist C:\activemq\README.txt goto noAntHome if not exist C:\activemq\README.txt goto noAntHome
set ACTIVEMQ_HOME=C:\activemq set ACTIVEMQ_HOME=C:\activemq
goto checkJava goto checkJava
:noAntHome :noAntHome
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME. echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
goto end goto end
:checkJava :checkJava
set _JAVACMD=%JAVACMD% set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH% set LOCALCLASSPATH=%CLASSPATH%
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
if "%JAVA_HOME%" == "" goto noJavaHome if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt goto runAnt
:noJavaHome :noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo. echo.
echo Warning: JAVA_HOME environment variable is not set. echo Warning: JAVA_HOME environment variable is not set.
echo. echo.
:runAnt :runAnt
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
REM Uncomment to enable YourKit profiling REM Uncomment to enable YourKit profiling
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent" REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
REM Uncomment to enable remote debugging 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 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 LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
set ACTIVEMQ_TASK="query" set ACTIVEMQ_TASK="query"
rem Select all components that belongs to the specified broker except advisory topics rem Select all components that belongs to the specified broker except advisory topics
rem and display the specified attributes 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" 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% "%_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 goto end
:end :end
set LOCALCLASSPATH= set LOCALCLASSPATH=
set _JAVACMD= set _JAVACMD=
set ACTIVEMQ_CMD_LINE_ARGS= set ACTIVEMQ_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal if "%OS%"=="Windows_NT" @endlocal
:mainEnd :mainEnd
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat" if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"

View File

@ -1,27 +1,27 @@
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
set _CLASSPATHCOMPONENT=%1 set _CLASSPATHCOMPONENT=%1
if ""%1""=="""" goto gotAllArgs if ""%1""=="""" goto gotAllArgs
shift shift
:argCheck :argCheck
if ""%1""=="""" goto gotAllArgs if ""%1""=="""" goto gotAllArgs
set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1 set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
shift shift
goto argCheck goto argCheck
:gotAllArgs :gotAllArgs
set LOCALCLASSPATH=%_CLASSPATHCOMPONENT%;%LOCALCLASSPATH% set LOCALCLASSPATH=%_CLASSPATHCOMPONENT%;%LOCALCLASSPATH%

View File

@ -1,115 +1,115 @@
@echo off @echo off
REM ActiveMQ shell script REM ActiveMQ shell script
REM REM
REM This script is heavily based on the Ant script REM This script is heavily based on the Ant script
REM REM
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat" if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ACTIVEMQ_HOME=%~dp0.. set DEFAULT_ACTIVEMQ_HOME=%~dp0..
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME% if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
set DEFAULT_ACTIVEMQ_HOME= set DEFAULT_ACTIVEMQ_HOME=
rem Slurp the command line arguments. This loop allows for an unlimited number rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway). rem of arguments (up to the command line limit, anyway).
set ACTIVEMQ_CMD_LINE_ARGS=%1 set ACTIVEMQ_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
shift shift
:setupArgs :setupArgs
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1 set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
shift shift
goto setupArgs goto setupArgs
rem This label provides a place for the argument list loop to break out rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to. rem and for NT handling to skip to.
:doneStart :doneStart
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed 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 rem by the user or the %0 problem on Windows 9x
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
rem check for activemq in Program Files on system drive rem check for activemq in Program Files on system drive
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
goto checkJava goto checkJava
:checkSystemDrive :checkSystemDrive
rem check for activemq in root directory of system drive rem check for activemq in root directory of system drive
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
set ACTIVEMQ_HOME=%SystemDrive%\activemq set ACTIVEMQ_HOME=%SystemDrive%\activemq
goto checkJava goto checkJava
:checkCDrive :checkCDrive
rem check for activemq in C:\activemq for Win9X users rem check for activemq in C:\activemq for Win9X users
if not exist C:\activemq\README.txt goto noAntHome if not exist C:\activemq\README.txt goto noAntHome
set ACTIVEMQ_HOME=C:\activemq set ACTIVEMQ_HOME=C:\activemq
goto checkJava goto checkJava
:noAntHome :noAntHome
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME. echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
goto end goto end
:checkJava :checkJava
set _JAVACMD=%JAVACMD% set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH% set LOCALCLASSPATH=%CLASSPATH%
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
if "%JAVA_HOME%" == "" goto noJavaHome if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt goto runAnt
:noJavaHome :noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo. echo.
echo Warning: JAVA_HOME environment variable is not set. echo Warning: JAVA_HOME environment variable is not set.
echo. echo.
:runAnt :runAnt
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
REM Uncomment to enable YourKit profiling REM Uncomment to enable YourKit profiling
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent" REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
REM Uncomment to enable remote debugging 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 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 LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
set ACTIVEMQ_TASK="list" 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% "%_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 goto end
:end :end
set LOCALCLASSPATH= set LOCALCLASSPATH=
set _JAVACMD= set _JAVACMD=
set ACTIVEMQ_CMD_LINE_ARGS= set ACTIVEMQ_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal if "%OS%"=="Windows_NT" @endlocal
:mainEnd :mainEnd
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat" if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"

View File

@ -1,115 +1,115 @@
@echo off @echo off
REM ActiveMQ shell script REM ActiveMQ shell script
REM REM
REM This script is heavily based on the Ant script REM This script is heavily based on the Ant script
REM REM
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat" if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ACTIVEMQ_HOME=%~dp0.. set DEFAULT_ACTIVEMQ_HOME=%~dp0..
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME% if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
set DEFAULT_ACTIVEMQ_HOME= set DEFAULT_ACTIVEMQ_HOME=
rem Slurp the command line arguments. This loop allows for an unlimited number rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway). rem of arguments (up to the command line limit, anyway).
set ACTIVEMQ_CMD_LINE_ARGS=%1 set ACTIVEMQ_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
shift shift
:setupArgs :setupArgs
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1 set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
shift shift
goto setupArgs goto setupArgs
rem This label provides a place for the argument list loop to break out rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to. rem and for NT handling to skip to.
:doneStart :doneStart
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed 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 rem by the user or the %0 problem on Windows 9x
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
rem check for activemq in Program Files on system drive rem check for activemq in Program Files on system drive
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
goto checkJava goto checkJava
:checkSystemDrive :checkSystemDrive
rem check for activemq in root directory of system drive rem check for activemq in root directory of system drive
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
set ACTIVEMQ_HOME=%SystemDrive%\activemq set ACTIVEMQ_HOME=%SystemDrive%\activemq
goto checkJava goto checkJava
:checkCDrive :checkCDrive
rem check for activemq in C:\activemq for Win9X users rem check for activemq in C:\activemq for Win9X users
if not exist C:\activemq\README.txt goto noAntHome if not exist C:\activemq\README.txt goto noAntHome
set ACTIVEMQ_HOME=C:\activemq set ACTIVEMQ_HOME=C:\activemq
goto checkJava goto checkJava
:noAntHome :noAntHome
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME. echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
goto end goto end
:checkJava :checkJava
set _JAVACMD=%JAVACMD% set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH% set LOCALCLASSPATH=%CLASSPATH%
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
if "%JAVA_HOME%" == "" goto noJavaHome if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt goto runAnt
:noJavaHome :noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo. echo.
echo Warning: JAVA_HOME environment variable is not set. echo Warning: JAVA_HOME environment variable is not set.
echo. echo.
:runAnt :runAnt
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
REM Uncomment to enable YourKit profiling REM Uncomment to enable YourKit profiling
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent" REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
REM Uncomment to enable remote debugging 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 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 LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
set ACTIVEMQ_TASK="query" 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% "%_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 goto end
:end :end
set LOCALCLASSPATH= set LOCALCLASSPATH=
set _JAVACMD= set _JAVACMD=
set ACTIVEMQ_CMD_LINE_ARGS= set ACTIVEMQ_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal if "%OS%"=="Windows_NT" @endlocal
:mainEnd :mainEnd
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat" if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"

View File

@ -1,115 +1,115 @@
@echo off @echo off
REM ActiveMQ shell script REM ActiveMQ shell script
REM REM
REM This script is heavily based on the Ant script REM This script is heavily based on the Ant script
REM REM
REM Copyright 2005-2006 The Apache Software Foundation REM Copyright 2005-2006 The Apache Software Foundation
REM REM
REM Licensed under the Apache License, Version 2.0 (the "License"); 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 not use this file except in compliance with the License.
REM You may obtain a copy of the License at REM You may obtain a copy of the License at
REM REM
REM http://www.apache.org/licenses/LICENSE-2.0 REM http://www.apache.org/licenses/LICENSE-2.0
REM REM
REM Unless required by applicable law or agreed to in writing, software 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 distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and REM See the License for the specific language governing permissions and
REM limitations under the License. REM limitations under the License.
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat" if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal if "%OS%"=="Windows_NT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ACTIVEMQ_HOME=%~dp0.. set DEFAULT_ACTIVEMQ_HOME=%~dp0..
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME% if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
set DEFAULT_ACTIVEMQ_HOME= set DEFAULT_ACTIVEMQ_HOME=
rem Slurp the command line arguments. This loop allows for an unlimited number rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway). rem of arguments (up to the command line limit, anyway).
set ACTIVEMQ_CMD_LINE_ARGS=%1 set ACTIVEMQ_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
shift shift
:setupArgs :setupArgs
if ""%1""=="""" goto doneStart if ""%1""=="""" goto doneStart
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1 set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
shift shift
goto setupArgs goto setupArgs
rem This label provides a place for the argument list loop to break out rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to. rem and for NT handling to skip to.
:doneStart :doneStart
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed 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 rem by the user or the %0 problem on Windows 9x
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
rem check for activemq in Program Files on system drive rem check for activemq in Program Files on system drive
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
goto checkJava goto checkJava
:checkSystemDrive :checkSystemDrive
rem check for activemq in root directory of system drive rem check for activemq in root directory of system drive
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
set ACTIVEMQ_HOME=%SystemDrive%\activemq set ACTIVEMQ_HOME=%SystemDrive%\activemq
goto checkJava goto checkJava
:checkCDrive :checkCDrive
rem check for activemq in C:\activemq for Win9X users rem check for activemq in C:\activemq for Win9X users
if not exist C:\activemq\README.txt goto noAntHome if not exist C:\activemq\README.txt goto noAntHome
set ACTIVEMQ_HOME=C:\activemq set ACTIVEMQ_HOME=C:\activemq
goto checkJava goto checkJava
:noAntHome :noAntHome
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME. echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
goto end goto end
:checkJava :checkJava
set _JAVACMD=%JAVACMD% set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH% set LOCALCLASSPATH=%CLASSPATH%
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
if "%JAVA_HOME%" == "" goto noJavaHome if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt goto runAnt
:noJavaHome :noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo. echo.
echo Warning: JAVA_HOME environment variable is not set. echo Warning: JAVA_HOME environment variable is not set.
echo. echo.
:runAnt :runAnt
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dderby.system.home="..\data" -Dderby.storage.fileSyncTransactionLog=true
REM Uncomment to enable YourKit profiling REM Uncomment to enable YourKit profiling
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent" REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
REM Uncomment to enable remote debugging 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 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 LOCALCLASSPATH=%ACTIVEMQ_HOME%\conf;%LOCALCLASSPATH%
set ACTIVEMQ_TASK="stop" 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% "%_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 goto end
:end :end
set LOCALCLASSPATH= set LOCALCLASSPATH=
set _JAVACMD= set _JAVACMD=
set ACTIVEMQ_CMD_LINE_ARGS= set ACTIVEMQ_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal if "%OS%"=="Windows_NT" @endlocal
:mainEnd :mainEnd
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat" if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"