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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to