You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Erik Hatcher <ja...@ehatchersolutions.com> on 2002/08/02 18:27:08 UTC
Re: How can I specify a single file fileset without specifying its
di rectory?
How about we add an optional 'file' attribute to <fileset> that will do
this automatically and create a single file fileset? This is one of my
biggest frustrations with Ant, actually.
This would not solve the issue posted here, but would probably make a
lot of folks lives easier, including mine! :)
Sorry for the delayed reply on this one.
Erik
Stefan Bodewig wrote:
> On Wed, 17 Jul 2002, Alexey Solofnenko <A....@mdl.com> wrote:
>
>
>> often I have a (relative) path to some file and I want to do
>> something with the file in ANT. However <fileset dir="."
>> includes="${path}"/> does not work, because the path is something
>> like "../dir1/dir2/file" - outside of the current directory
>> structure. How can I deal with this?
>
>
> Use <dirname> to create something for <fileset>'s dir attribute and
> <basename> for the includes part.
>
> Stefan
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>