DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5478>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5478

Detecting 4NT in ant.bat

           Summary: Detecting 4NT in ant.bat
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build Process
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I'm using 4NT301.
ant.bat tries to detect if it is running from 4NT shell by calling:
if "%eval[2+2]" == "4" goto setup4NT
on my 4NT version the command eval does not exits.
from the 4NT help files:

Detecting 4NT

>From a batch file, you can determine if 4NT (or another JP Software command 
processor) is loaded by testing for the variable function @EVAL, with a test 
like this:

if "[EMAIL PROTECTED] + 2]%" == "4" echo 4NT is loaded!

This test can never succeed in CMD.EXE. Other variable functions could be used 
for the same purpose.


after adding the '@' every thing works fine.
I've failed to use the ant.bat for about half a day until I've found it.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to