TOMEE-1628 logging start/stop are not supported from tomee.bat
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/6014cf20 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/6014cf20 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/6014cf20 Branch: refs/heads/master Commit: 6014cf207fd448371a9da18675f1b9c7898f56ed Parents: 6b97067 Author: Romain Manni-Bucau <[email protected]> Authored: Sun Aug 30 22:52:27 2015 +0200 Committer: Romain Manni-Bucau <[email protected]> Committed: Sun Aug 30 22:52:27 2015 +0200 ---------------------------------------------------------------------- tomee/apache-tomee/src/main/resources/tomee.bat | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/6014cf20/tomee/apache-tomee/src/main/resources/tomee.bat ---------------------------------------------------------------------- diff --git a/tomee/apache-tomee/src/main/resources/tomee.bat b/tomee/apache-tomee/src/main/resources/tomee.bat index 18f82b1..ab1bc04 100644 --- a/tomee/apache-tomee/src/main/resources/tomee.bat +++ b/tomee/apache-tomee/src/main/resources/tomee.bat @@ -69,6 +69,8 @@ for %%F in (%lib%/*.jar) do ( if ""%1"" == ""deploy"" goto doDeploy if ""%1"" == ""undeploy"" goto doUndeploy +if ""%1"" == ""start"" goto unsupportedCmd +if ""%1"" == ""stop"" goto unsupportedCmd goto doExec :doDeploy @@ -76,6 +78,10 @@ goto doExec "%_RUNJAVA%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" org.apache.openejb.cli.Bootstrap %1 -s http://localhost:%port%/tomee/ejb %2 goto end +:unsupportedCmd +echo start/stop commands are not compatible with tomee.bat, please use catalina.bar/startup.bat/shutdown.bat +goto end + :doExec "%_RUNJAVA%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" org.apache.openejb.cli.Bootstrap %* goto end
