James Perkins created AS7-6822:
----------------------------------
Summary: standalone.bat has an error for setting debug mode with --debug
Key: AS7-6822
URL:
https://issues.jboss.org/browse/AS7-6822
Project: Application Server 7
Issue Type: Bug
Components: Scripts
Reporter: James Perkins
Assignee: James Perkins
Priority: Minor
Fix For: 8.0.0.Alpha1
In the released EAP 6.1.0-alpha, standalone.bat has these lines:
{code}
rem Set debug settings if not already set
if "%DEBUG_MODE%" == "true" (
echo "%JAVA_OPTS%" | findstr /I "\-agentlib:jdwp" > nul
if errorlevel == 1 (
echo Debug already enabled in JAVA_OPTS, ignoring --debug argument
) else (
set "JAVA_OPTS=%JAVA_OPTS%
-agentlib:jdwp=transport=dt_socket,address=%DEBUG_PORT%,server=y,suspend=n"
)
)
{code}
The check on the error level is wrong. If "findstr" *can* find the agentlib
setting, then errorlevel will be 0.
So the correction is:
{code}
if errorlevel == 1 (
{code}
should be:
{code}
if errorlevel == 0 (
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira