ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erskine, Chris" <chris.ersk...@eds.com>
Subject RE: cd shell script command - ant equivalent?
Date Fri, 30 Sep 2005 23:04:30 GMT
Look at the dir attribute on the exec task.

Chris Erskine
 
EDS Consulting Services
Colorado Springs, CO 
 
Phone: 719-265-5962
Cell: 719-640-6488

-----Original Message-----
From: Chad Armstrong [mailto:chad.armstrong@gmail.com] 
Sent: Friday, September 30, 2005 4:53 PM
To: Ant Users List
Subject: cd shell script command - ant equivalent?

Hi all,
  I am converting a Makefile to an ant script. Is there a way to
specify directory location in ant, like with the 'cd' command in a
Makefile/shell script? I have an exe file that I need to execute (via
the <exec> task), which is located in a sub-directory of where the
main ant script is, and I *think* the <exec> is failing because the
ant task execute gives a directory scope to the exe, which causes the
exe to not process it's own internal relative directory lookups
properly. The exe fails because it cannot find a file that is "right
in front of it". I need to tell the ant script what directory it
should be starting at (the equivalent of 'cd').

Thanks for any help,
Chad

---------------------------------------------------------------------
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