[
http://jira.codehaus.org/browse/MNG-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brian Fox closed MNG-2685.
--------------------------
Resolution: Fixed
Fix Version/s: (was: Reviewed Pending Version Assignment)
2.0.8
patch already applied. Windows bat works fine.
> mvn.bat detection of 4NT syntax error
> -------------------------------------
>
> Key: MNG-2685
> URL: http://jira.codehaus.org/browse/MNG-2685
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP & 4NT 8.0
> Reporter: Mark DeLaFranier
> Fix For: 2.0.8
>
> Attachments: MNG-2685.patch
>
>
> Copied from the 4NT 8.0 Documentation:
> ======================================================================================
> "Detecting 4NT or Take Command
> From a batch file, you can determine if 4NT or TC is loaded by testing for
> the variable function @EVAL, with a test like this:
> if "[EMAIL PROTECTED] + 2]%" == "4" echo %_cmdproc is loaded!
> This test can never succeed in CMD.EXE. (Other variable functions could also
> be used for the same purpose.) The _CMDPROC internal variable tells you which
> specific command processor is running.
> =======================================================================================
> The mvn.bat in 2.0.4 contains:
> @REM -- 4NT shell
> if "%eval[2+2]" == "4" goto 4NTArgs
> It should be:
> @REM -- 4NT shell
> if "[EMAIL PROTECTED]" == "4" goto 4NTArgs
> In case, you don't see it, the first one is missing the @ in between the %
> and eval
> I will attach a patch in a moment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira