Details
-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
-
None
Description
SourceForge Submitter: adrianprice .
If you invoke run.bat with arguments containing an
equals sign, the mechanism used to build the ARGS
environment variable strips out the = sign and splits the
argument into two strings, with the result that all such
arguments are ignored. For example:
call C:\jboss-3.2.2\bin\run -Djboss.server.name=zaplet
actually results in the ARGS variable acquiring the value:
-Djboss.server.name zaplet
Without the = sign java.exe receives two arguments
instead of the one, and accordingly ignores the -D
option with the message:
run.bat: unused non-option argument: zaplet
SOLUTION
********
Change line 88 to pass %* instead of %ARGS%, and
completely remove the code that builds the latter
variable:
:RESTART
"%JAVA%" %JAVA_OPTS% -classpath "%
JBOSS_CLASSPATH%" org.jboss.Main %*
IF ERRORLEVEL 10 GOTO RESTART