Skip to content

Commit 373ef9b

Browse files
jmesnilbstansberry
authored andcommittedFeb 24, 2014
[WFLY-2261] Fix standalone.sh --debug [<port>]
Fix standalone.sh script when the debug port is specified on the command line. WildFly's server Main class expects to get --debug from its args before the debug port. Add it to the script's $SERVER_OPTS if debug mode is set. JIRA: https://issues.jboss.org/browse/WFLY-2261
1 parent 3d7e389 commit 373ef9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎build/src/main/resources/bin/standalone.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ do
1616
shift
1717
if [ -n "$1" ] && [ "${1#*-}" = "$1" ]; then
1818
DEBUG_PORT=$1
19-
else
20-
SERVER_OPTS="$SERVER_OPTS \"$1\""
2119
fi
2220
;;
2321
--)
@@ -107,6 +105,7 @@ if [ "$DEBUG_MODE" = "true" ]; then
107105
else
108106
echo "Debug already enabled in JAVA_OPTS, ignoring --debug argument"
109107
fi
108+
SERVER_OPTS="$SERVER_OPTS --debug ${DEBUG_PORT}"
110109
fi
111110

112111
# Setup the JVM

0 commit comments

Comments
 (0)
Please sign in to comment.