[ http://jira.codehaus.org/browse/MNG-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey updated MNG-2685: ---------------------------- Description: 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. was: 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. Patch Submitted: (was: [Yes]) How does this relate to MNG-2503? I just applied the diff between that attached mvn.bat and the current trunk, with minor differences... It's been applied to both trunk and the maven-2.0.x branch...can someone with Windows take a look at these two issues, and give us some insight? > 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 > 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