add debug option

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290358 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-20 04:51:14 +00:00
parent c1cea216ec
commit 27aa17cb32
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ if [ "$1" == "profile" ]; then
shift
fi
if [ "$1" == "debug" ]; then
JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
shift
fi
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME=/usr/local/java
fi