ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aarti Chandnani <>
Subject RE: exec
Date Wed, 23 May 2001 22:23:14 GMT

-----Original Message-----
From: Diane Holt []
Sent: Tuesday, May 22, 2001 4:57 PM
Subject: Re: exec

--- Aarti Chandnani <> wrote:
> Im trying to use the exec task.
> And say i have my base dir as /NIGHTLY
> and i have various directories like /NIGHTLY/a/b/c/
> now in directory 'c' i have a file called
> and the first line in is 
> mkdir d
> when i run the exec it creates the 'd' direcotry in /NIGHTLY . However
> what i am expecting is that it create the 'd' directory in 'c'
> The xml is simple and has:
> <exec executable="a/b/c/" failonerror="true" />
> Is there anything I can do about it, besides changing my script?

Add the "dir" attribute, and call the executable with its simple filename:

  <exec dir="a/b/c" executable="" failonerror="true"/>

(Although you might actually want to exec 'sh' instead, if you need it to
run on Windoze :)



Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices

View raw message