Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-778

run.bat does not parse arguments containing = correctly

    XMLWordPrintable

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

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: