You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2016/07/04 21:10:45 UTC
tomee git commit: TOMEE-1859 debug on tomee.sh
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 <rm...@gmail.com>
Authored: Mon Jul 4 23:10:30 2016 +0200
Committer: Romain manni-Bucau <rm...@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