ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: How can I specify a single file fileset without specifying its di rectory?
Date Thu, 18 Jul 2002 05:51:57 GMT
On Wed, 17 Jul 2002, Alexey Solofnenko <> 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.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message