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

build.bat splits argument's name and value (name=value) into two args

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • 6.0.0.M1
    • Build System
    • None
    • Windows XP professional

    • Hide

      Call Maven directly.

      Show
      Call Maven directly.

      Window's cmd splits the arguments by the '=' char, so echo %1 %2 applied to -Dmodule=ejb gives -Dmodule and ejb .

      ========================================================
      C:\JBossAS\trunk>build.bat -Dmodule=ejb
      Calling .\tools\maven\bin\mvn.bat -Dmodule ejb
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).
      ========================================================

      :: for %%i in (%NAMES%) do call :subLoop %%i %1 %2 %3 %4 %5 %6
      >> call :subLoop %i -Dmodule ejb

      When using %*, this does not happen.

              Unassigned Unassigned
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: