IDEMPIERE-2180 debug option for the server start script

This commit is contained in:
Thomas Bayen 2014-09-03 17:46:25 -05:00
parent 9ee13407ab
commit fdca6168a8
1 changed files with 5 additions and 1 deletions

View File

@ -9,10 +9,14 @@ else
echo Set JAVA_HOME to the directory of your local JDK. echo Set JAVA_HOME to the directory of your local JDK.
fi fi
if [ "$1"=="debug" ]; then
DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4554,server=y,suspend=n"
fi
echo =================================== echo ===================================
echo Starting iDempiere Server echo Starting iDempiere Server
echo =================================== echo ===================================
unset DISPLAY unset DISPLAY
BASE=`dirname $( readlink -f idempiere-server.sh )` BASE=`dirname $( readlink -f idempiere-server.sh )`
$JAVA -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -XX:MaxPermSize=192m -jar $BASE/plugins/org.eclipse.equinox.launcher_1.*.jar -console 12612 -application org.adempiere.server.application $JAVA ${DEBUG} -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -XX:MaxPermSize=192m -jar $BASE/plugins/org.eclipse.equinox.launcher_1.*.jar -console 12612 -application org.adempiere.server.application