ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Basic setup question
Date Wed, 17 Mar 2004 18:46:25 GMT
ant.bat also checks one level above the current working directory for ant, but in this case
you may be calling the ant shell script ant not ant.bat, since you have cygwin installed.
The ant shell script will get the directory path that it resides in and check for ant one
level up. In this case, the ant shell script will attempt to set ANT_HOME to /cygdrive/c/my_data/apache-ant-1.6.0.
This may be mysterious to some people, but there is reason and logic within. Take a look at
the scripts and they will reveal themselves.

-Rob Anderson

> -----Original Message-----
> From: Guru Balse [mailto:guru.balse@oracle.com]
> Sent: Wednesday, March 17, 2004 10:06 AM
> To: Ant Users List
> Subject: Re: Basic setup question
> 
> 
> I suspect ANT works in mysterious ways on NT/XP.
> 
> Look at my screen dump below:
> ---------------------------------------------------------
> C:\my_data\ant_learn>set | grep ANT
> 
> C:\my_data\ant_learn>which ant
> /cygdrive/c/my_data/apache-ant-1.6.0/bin/ant
> 
> C:\my_data\ant_learn>ant -f test.xml
> Buildfile: test.xml
> 
> test:
>      [echo] ANT is cool!
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> C:\my_data\ant_learn>
> ---------------------------------------------------------
> so as long as the real ANT HOME bin directory is in the path, 
> ant seems to work (at least for me)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message