You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2017/08/04 16:20:32 UTC
qpid-broker-j git commit: QPID-7878: [Java Broker] [Windows Batch
File] Add command line option to hold cmd window open if java returns
non-zero
Repository: qpid-broker-j
Updated Branches:
refs/heads/master b469c454a -> 65056b757
QPID-7878: [Java Broker] [Windows Batch File] Add command line option to hold cmd window open if java returns non-zero
Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/65056b75
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/65056b75
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/65056b75
Branch: refs/heads/master
Commit: 65056b7574d0ebea16c99bce6943440a48449887
Parents: b469c45
Author: Keith Wall <kw...@apache.org>
Authored: Fri Aug 4 17:19:25 2017 +0100
Committer: Keith Wall <kw...@apache.org>
Committed: Fri Aug 4 17:19:48 2017 +0100
----------------------------------------------------------------------
broker/bin/qpid-server.bat | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/65056b75/broker/bin/qpid-server.bat
----------------------------------------------------------------------
diff --git a/broker/bin/qpid-server.bat b/broker/bin/qpid-server.bat
index 6ce9dd3..09762bd 100755
--- a/broker/bin/qpid-server.bat
+++ b/broker/bin/qpid-server.bat
@@ -87,6 +87,7 @@ if "%~1" neq "" goto runLoop
goto endRunArgs
:runFound
+if "%var%" == "-run:pauseOnError" goto runPauseOnError
if "%var%" == "-run:debug" goto runDebug
if "%var%" == "-run:jpda" goto runJdpa
if "%var:~0,24%" == "-run:external-classpath-" goto runExternalClasspath
@@ -124,6 +125,11 @@ if "%var%" == "-run:external-classpath-only" goto extCPOnly
echo Invalid value provided for external classpath.
goto end
+
+:runPauseOnError
+set pauseOnError=true
+goto beforeRunShift
+
:extCPFirst
set CLASSPATH=%EXTERNAL_CLASSPATH%;%CLASSPATH%
goto beforeRunShift
@@ -192,5 +198,11 @@ if "%debug%" == "true" echo %CLASSPATH%;%LAUNCH_JAR%;%MODULE_JARS%
if "%debug%" == "true" echo %COMMAND%
%COMMAND%
+if not errorlevel 1 goto end
+if not "%pauseOnError%" == "true" goto end
+
+echo Info: Process ended with non-zero errorlevel %ERRORLEVEL%
+pause
+
:end
ENDLOCAL
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org