ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5478] New: - Detecting 4NT in ant.bat
Date Tue, 18 Dec 2001 08:40:00 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message