Skip to content

Commit

Permalink
midpoint.sh: proposed command line with -Dloader.path , but not used yet
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Sep 10, 2020
1 parent 8e9480c commit 2299c7e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dist/src/main/bin/midpoint.sh
Expand Up @@ -112,9 +112,17 @@ if [ "$1" = "start" ]; then
echo "MIDPOINT_HOME=$MIDPOINT_HOME"

# shellcheck disable=SC2086
eval $_NOHUP "\"$_RUNJAVA\"" -jar $LOGGING_MANAGER $JAVA_OPTS \
"${BASE_DIR}/lib/midpoint.war" "$@" \
eval $_NOHUP "\"$_RUNJAVA\"" $LOGGING_MANAGER $JAVA_OPTS \
-jar "${BASE_DIR}/lib/midpoint.war" "$@" \
"&" >>"$BOOT_OUT" 2>&1
# using loader.path produces strange failures on schema validation during start on closed networks
# eval $_NOHUP "\"$_RUNJAVA\"" \
# $LOGGING_MANAGER $JAVA_OPTS \
# -cp "${BASE_DIR}/lib/midpoint.war" \
# -Dloader.path=WEB-INF/classes,WEB-INF/lib,WEB-INF/lib-provided,$MIDPOINT_HOME/lib/ \
# org.springframework.boot.loader.PropertiesLauncher \
# "$@" \
# "&" >>"$BOOT_OUT" 2>&1

if [[ -n "$PID_FILE" ]]; then
echo $! >"$PID_FILE"
Expand Down

0 comments on commit 2299c7e

Please sign in to comment.