You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/12/18 09:40:00 UTC

DO NOT REPLY [Bug 5478] New: - Detecting 4NT in ant.bat

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: ant-dev@jakarta.apache.org
        ReportedBy: eran@orsus.com


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 "%@eval[2 + 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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>