2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2017-12-06 22:22:05 +07:00
|
|
|
unset DISPLAY
|
2020-09-09 00:37:00 +07:00
|
|
|
BASE=$(dirname "$( readlink -f "$0" )")
|
|
|
|
export ID_ENV=Server
|
|
|
|
. "$BASE"/utils/myEnvironment.sh
|
|
|
|
if [ "$JAVA_HOME" ]; then
|
2010-11-04 02:46:38 +07:00
|
|
|
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
|
|
|
|
2020-10-31 05:53:36 +07:00
|
|
|
VMOPTS="-Dorg.osgi.framework.bootdelegation=sun.security.ssl
|
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
|
2020-10-31 05:53:36 +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-https.xml,etc/jetty-threadpool.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
|
2020-11-09 22:13:25 +07:00
|
|
|
-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
|
2018-12-13 02:44:42 +07:00
|
|
|
--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
|
2020-11-09 22:13:25 +07:00
|
|
|
--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
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
$JAVA ${DEBUG} $IDEMPIERE_JAVA_OPTIONS $VMOPTS -jar "$BASE"/plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.server.application
|