mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-24 21:16:01 +00:00
Added debug mode if boot war is selected
This commit is contained in:
parent
bea103daab
commit
8fcc27cf8b
@ -130,16 +130,21 @@ WEB_TLS_PARAMS="--server.ssl.key-store-password=$hirs_pki_password \
|
|||||||
# uncomment to show spring boot and hibernate properties used as gradle arguments
|
# uncomment to show spring boot and hibernate properties used as gradle arguments
|
||||||
#echo "--args=\"$CONNECTOR_PARAMS $WEB_TLS_PARAMS\""
|
#echo "--args=\"$CONNECTOR_PARAMS $WEB_TLS_PARAMS\""
|
||||||
|
|
||||||
if [ "$DEBUG_ACA" == YES ]; then
|
if [ -z "$USE_WAR" ]; then
|
||||||
echo "Booting with debug mode..."
|
|
||||||
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE" -Pdebug
|
|
||||||
elif [ -z "$USE_WAR" ]; then
|
|
||||||
echo "Booting the ACA from local build..."
|
echo "Booting the ACA from local build..."
|
||||||
# ./gradlew bootRun --args="$CONNECTOR_PARAMS$WEB_TLS_PARAMS"
|
if [ "$DEBUG_ACA" == YES ]; then
|
||||||
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE"
|
echo "... in debug"
|
||||||
|
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE" -Pdebug
|
||||||
|
else
|
||||||
|
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Booting the ACA from a war file..."
|
echo "Booting the ACA from a war file..."
|
||||||
# java -jar $WAR_PATH $CONNECTOR_PARAMS$WEB_TLS_PARAMS &
|
if [ "$DEBUG_ACA" == YES ]; then
|
||||||
java -jar $WAR_PATH --spring.config.location=$SPRING_PROP_FILE &
|
echo "... in debug"
|
||||||
exit 0
|
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9123 -jar $WAR_PATH --spring.config.location=$SPRING_PROP_FILE &
|
||||||
|
else
|
||||||
|
java -jar $WAR_PATH --spring.config.location=$SPRING_PROP_FILE &
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -74,13 +74,21 @@ if (!$DEPLOYED_WAR) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$SPRING_PROP_FILE_FORWARDSLASHES=($global:HIRS_DATA_SPRING_PROP_FILE | ChangeBackslashToForwardSlash)
|
$SPRING_PROP_FILE_FORWARDSLASHES=($global:HIRS_DATA_SPRING_PROP_FILE | ChangeBackslashToForwardSlash)
|
||||||
if ($d -or $debug) {
|
if ($w -or $war) {
|
||||||
echo "Booting with debug mode..."
|
|
||||||
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE" -Pdebug
|
|
||||||
elseif ($w -or $war) {
|
|
||||||
echo "Booting the ACA from a war file..." | WriteAndLog
|
echo "Booting the ACA from a war file..." | WriteAndLog
|
||||||
java -jar $DEPLOYED_WAR --spring.config.location=$SPRING_PROP_FILE_FORWARDSLASHES
|
if ($d -or $debug) {
|
||||||
|
echo "... in debug"
|
||||||
|
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9123 -jar $DEPLOYED_WAR --spring.config.location=$SPRING_PROP_FILE_FORWARDSLASHES
|
||||||
|
} else {
|
||||||
|
java -jar $DEPLOYED_WAR --spring.config.location=$SPRING_PROP_FILE_FORWARDSLASHES
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "Booting the ACA from local build..." | WriteAndLog
|
echo "Booting the ACA from local build..." | WriteAndLog
|
||||||
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE_FORWARDSLASHES"
|
if ($d -or $debug) {
|
||||||
|
echo "... in debug"
|
||||||
|
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE_FORWARDSLASHES" -Pdebug
|
||||||
|
} else {
|
||||||
|
./gradlew bootRun --args="--spring.config.location=$SPRING_PROP_FILE_FORWARDSLASHES"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user