zyxist / chainsaw

Gradle plugin: adds support for building Java 9 modules.
Apache License 2.0
70 stars 4 forks source link

invocation commandline in start scripts is wrong #16

Open Vampire opened 6 years ago

Vampire commented 6 years ago

DEFAULT_JVM_OPTS is set to '"--module-path" "$APP_HOME/lib" "--module" "de.empic.mobile.sl_mobile_client/de.empic.auditorapp.ui.centralui.AuditorAppMain"' and then used in

eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $SL_MOBILE_CLIENT_OPTS -classpath "\"$CLASSPATH\"" de.empic.auditorapp.ui.centralui.AuditorAppMain "$APP_ARGS"
exec "$JAVACMD" "$@"

This means any JAVA_OPTS, SL_MOBILE_CLIENT_OPTS, the classspath and the main class name are not considered how they are meant, but are given to the program as parameters. Instead of setting DEFAULT_JVM_OPTS. For the --module-path and its argument this might be ok, but for the --module and its setting it has to replace the main class name instead.