ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amnon Khen" <Amnon.K...@unipier.com>
Subject RE: complex arguments and the <apply> task
Date Tue, 19 Oct 2004 15:08:37 GMT
Thanks, Stefan, for your quick response.

The 'relative' attribute did the trick. 
However, since I needed a full path, I had to explicitly add it in the
mapper:
	<mapper type="glob" from="*" to="-arg=${root.dir}/*"/>
It worked for me, but I'm afraid that if several filesets with different
base directories were used, it wouldn't work.

Thanks again,
	Amnon

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Tuesday, October 19, 2004 4:13 PM
To: user@ant.apache.org
Subject: Re: complex arguments and the <apply> task

On Tue, 19 Oct 2004, Amnon Khen <Amnon.Khen@unipier.com> wrote:

> I though that using the mapper to prefix the target file with "-arg"
> would do the trick,

Yes, definitively a nice idea.

> but what actually happens is that Ant prefixes the argument with the
> task's working directory.

have you tried relative="true"?  Untested, but I'd expect it to work.

Stefan

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