tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject tomee git commit: TOMEE-1858 enhancing tomee.bat
Date Mon, 04 Jul 2016 19:26:47 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 69edd5835 -> 3998036fd

TOMEE-1858 enhancing tomee.bat


Branch: refs/heads/master
Commit: 3998036fdb70c72ce9fdc5cf057866850b618b31
Parents: 69edd58
Author: Romain manni-Bucau <>
Authored: Mon Jul 4 21:26:26 2016 +0200
Committer: Romain manni-Bucau <>
Committed: Mon Jul 4 21:26:26 2016 +0200

 tomee/apache-tomee/src/main/resources/tomee.bat | 39 +++++++++-----------
 1 file changed, 17 insertions(+), 22 deletions(-)
diff --git a/tomee/apache-tomee/src/main/resources/tomee.bat b/tomee/apache-tomee/src/main/resources/tomee.bat
index c3a3a5a..cf7c357 100644
--- a/tomee/apache-tomee/src/main/resources/tomee.bat
+++ b/tomee/apache-tomee/src/main/resources/tomee.bat
@@ -1,18 +1,14 @@
 @echo off
-rem Licensed to the Apache Software Foundation (ASF) under one or more
-rem contributor license agreements.  See the NOTICE file distributed with
-rem this work for additional information regarding copyright ownership.
-rem The ASF licenses this file to You under the Apache License, Version 2.0
-rem (the "License"); you may not use this file except in compliance with
-rem the License.  You may obtain a copy of the License at
+rem Tomitribe Confidential
+rem Copyright Tomitribe Corporation. 2015
+rem The source code for this program is not published or otherwise divested
+rem of its trade secrets, irrespective of what has been deposited with the
+rem U.S. Copyright Office.
-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 "%OS%" == "Windows_NT" setlocal
@@ -58,24 +54,23 @@ set "CATALINA_TMPDIR=%CATALINA_BASE%\temp"
 rem create classpath
-setlocal enabledelayedexpansion
-set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\tomcat-juli.jar"
-set lib="%CATALINA_HOME%\lib\"
-echo %lib%
-for %%F in (%lib%/*.jar) do (
+set DEBUG=
+set "args=%*"
 if ""%1"" == ""deploy"" goto doDeploy
 if ""%1"" == ""undeploy"" goto doUndeploy
 if ""%1"" == ""start"" goto unsupportedCmd
 if ""%1"" == ""stop"" goto unsupportedCmd
+if not ""%1"" == ""debug"" goto doExec
+set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
+set "args=%*"
+set "args=%args:* =%"
 goto doExec
-"%_RUNJAVA%""%CATALINA_TMPDIR%" org.apache.openejb.cli.Bootstrap %1 -s
http://localhost:%port%/tomee/ejb %2
+%_RUNJAVA%"%CATALINA_TMPDIR%" org.apache.openejb.cli.Bootstrap %1 -s http://localhost:%port%/tomee/ejb
 goto end
@@ -83,7 +78,7 @@ echo start/stop commands are not compatible with tomee.bat, please use catalina.
 goto end
-"%_RUNJAVA%""%CATALINA_TMPDIR%" org.apache.openejb.cli.Bootstrap %*
+%_RUNJAVA% %DEBUG% "-Dopenejb.base=%CATALINA_BASE%" "-Dopenejb.home=%CATALINA_HOME%" ""
org.apache.openejb.cli.Bootstrap %args%
 goto end

View raw message