ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Hermann">
Subject Re: Solved: copy: "fileset dir" copies only file
Date Sat, 03 Sep 2005 17:42:10 GMT
On Sat, 03 Sep 2005 14:28:00 +0200, Mark Wiehland wrote:

>> ${distdir} = "./build/dist"
>> ${imagedir}= "./resources/img", with a file "testimg.png" inside.

><!-- copy image directory -->
>  <copy todir="${distdir}/img" verbose="true">
>    <fileset dir="${imagedir}"/>
>  </copy>

>Ant will create the folder then. Still, I think this is not the way it
>should be...shouldn't I be able to just copy a directory?

If you tell Ant, yes. ;)

  <copy todir="${distdir}" verbose="true">
    <fileset dir="${resourcesdir}" includes="img/"/>

The point is that the RELATIVE paths in the filesets is what is copied, 
EXCLUDING the "dir".

Ciao, J├╝rgen

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

View raw message