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:[EMAIL PROTECTED] 
Sent: Tuesday, October 19, 2004 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: complex arguments and the <apply> task

On Tue, 19 Oct 2004, Amnon Khen <[EMAIL PROTECTED]> 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: [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