IDEMPIERE-6244 Required change on idempiere-server.sh for docker (#2458)
This commit is contained in:
parent
bf3fb64d3b
commit
6dce6368e9
|
@ -13,8 +13,10 @@ else
|
|||
echo Set JAVA_HOME to the directory of your local JDK.
|
||||
fi
|
||||
|
||||
DEBUG_PORT=${DEBUG_PORT:-4554}
|
||||
|
||||
if [ "$1" = "debug" ]; then
|
||||
DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4554,server=y,suspend=n"
|
||||
DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n"
|
||||
fi
|
||||
|
||||
echo ===================================
|
||||
|
@ -52,4 +54,8 @@ VMOPTS="-Dorg.osgi.framework.bootdelegation=sun.security.ssl
|
|||
--add-exports java.sql.rowset/com.sun.rowset=ALL-UNNAMED
|
||||
--add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED"
|
||||
|
||||
"$JAVA" ${DEBUG} $IDEMPIERE_JAVA_OPTIONS $VMOPTS -jar "$BASE"/plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.server.application
|
||||
IDEMPIERE_JAVA_OPTIONS=${JAVA_OPTS:-$IDEMPIERE_JAVA_OPTIONS}
|
||||
|
||||
echo "Starting iDempiere: $JAVA ${DEBUG} $IDEMPIERE_JAVA_OPTIONS $VMOPTS -jar $BASE/plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.server.application"
|
||||
|
||||
$JAVA ${DEBUG} $IDEMPIERE_JAVA_OPTIONS $VMOPTS -jar $BASE/plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.server.application
|
||||
|
|
Loading…
Reference in New Issue