tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: TOMEE-1859 debug on tomee.sh
Date Mon, 04 Jul 2016 21:10:45 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 3998036fd -> 52828b17e


TOMEE-1859 debug on tomee.sh


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/52828b17
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/52828b17
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/52828b17

Branch: refs/heads/master
Commit: 52828b17e610dedb375490ce6fff91020a735c59
Parents: 3998036
Author: Romain manni-Bucau <rmannibucau@gmail.com>
Authored: Mon Jul 4 23:10:30 2016 +0200
Committer: Romain manni-Bucau <rmannibucau@gmail.com>
Committed: Mon Jul 4 23:10:30 2016 +0200

----------------------------------------------------------------------
 tomee/apache-tomee/src/main/resources/tomee.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/52828b17/tomee/apache-tomee/src/main/resources/tomee.sh
----------------------------------------------------------------------
diff --git a/tomee/apache-tomee/src/main/resources/tomee.sh b/tomee/apache-tomee/src/main/resources/tomee.sh
index d0f493b..7461d6e 100644
--- a/tomee/apache-tomee/src/main/resources/tomee.sh
+++ b/tomee/apache-tomee/src/main/resources/tomee.sh
@@ -15,10 +15,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-version="7.0.0"
-
-DEBUG=
-#DEBUG="-Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
 
 #
 # classpath, copied from catalina.sh
@@ -116,6 +112,12 @@ if $cygwin; then
   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
 fi
 
+DEBUG=
+if [ $# -ge 2 ] && [ "$1" == "debug" ]; then
+    shift
+    DEBUG="-Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${JPDA_SUSPEND:-y},address=${JPDA_ADDRESS:-5005}"
+fi
+
 # execute the command
 if [ "$1" = "deploy" ] || [ "$1" = "undeploy" ]; then
     if [ $# -eq 2 ]; then


Mime
View raw message