2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2017-12-06 22:22:05 +07:00
|
|
|
unset DISPLAY
|
|
|
|
BASE=`dirname $( readlink -f $0 )`
|
|
|
|
. $BASE/utils/myEnvironment.sh Server
|
2010-11-04 02:46:38 +07:00
|
|
|
if [ $JAVA_HOME ]; then
|
|
|
|
JAVA=$JAVA_HOME/bin/java
|
|
|
|
else
|
|
|
|
JAVA=java
|
|
|
|
echo JAVA_HOME is not set.
|
|
|
|
echo You may not be able to start the server
|
|
|
|
echo Set JAVA_HOME to the directory of your local JDK.
|
|
|
|
fi
|
|
|
|
|
2014-09-17 21:16:14 +07:00
|
|
|
if [ "$1" = "debug" ]; then
|
2014-09-04 05:46:25 +07:00
|
|
|
DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4554,server=y,suspend=n"
|
|
|
|
fi
|
|
|
|
|
2010-11-04 02:46:38 +07:00
|
|
|
echo ===================================
|
2012-06-06 21:13:34 +07:00
|
|
|
echo Starting iDempiere Server
|
2010-11-04 02:46:38 +07:00
|
|
|
echo ===================================
|
|
|
|
|
2018-11-29 15:11:48 +07:00
|
|
|
# if don't set from service get default value
|
|
|
|
TELNET_PORT=${TELNET_PORT:-12612}
|
|
|
|
|
2017-08-27 00:21:17 +07:00
|
|
|
|
2018-09-12 00:10:22 +07:00
|
|
|
VMOPTS="-Dorg.osgi.framework.bootdelegation=sun.security.ssl,org.w3c.dom.events
|
2017-08-27 00:21:17 +07:00
|
|
|
-Dosgi.compatibility.bootdelegation=true
|
|
|
|
-Djetty.home=$BASE/jettyhome
|
2017-08-27 00:33:36 +07:00
|
|
|
-Djetty.base=$BASE/jettyhome
|
2018-04-16 10:15:31 +07:00
|
|
|
-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc/jetty-ssl.xml,etc/jetty-ssl-context.xml,etc/jetty-http.xml,etc/jetty-alpn.xml,etc/jetty-http2.xml,etc/jetty-https.xml
|
2018-11-29 15:11:48 +07:00
|
|
|
-Dosgi.console=localhost:$TELNET_PORT
|
2017-08-27 00:21:17 +07:00
|
|
|
-Dmail.mime.encodefilename=true
|
|
|
|
-Dmail.mime.decodefilename=true
|
|
|
|
-Dmail.mime.encodeparameters=true
|
2018-12-13 02:44:42 +07:00
|
|
|
-Dmail.mime.decodeparameters=true
|
|
|
|
--add-exports java.desktop/sun.awt=ALL-UNNAMED
|
|
|
|
--add-exports java.sql.rowset/com.sun.rowset=ALL-UNNAMED
|
|
|
|
--add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED
|
2018-12-15 22:23:16 +07:00
|
|
|
--add-modules=ALL-SYSTEM
|
|
|
|
--add-modules java.se --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.sql.rowset/com.sun.rowset=ALL-UNNAMED --add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED"
|
2017-08-27 00:21:17 +07:00
|
|
|
|
|
|
|
$JAVA ${DEBUG} $IDEMPIERE_JAVA_OPTIONS $VMOPTS -jar $BASE/plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.server.application
|