ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Champlon <m.champ...@free.fr>
Subject Re: fileset and filename under copy task
Date Wed, 21 Feb 2007 07:24:50 GMT
bill/wilandra a écrit :
> >From the examples in the 1.6.5 manual I would assume that the following
> should work. I did not try it.
>      <copy todir="${bin}">
>        <fileset dir="${src}">
>          <filename name="hibernate.cfg.xml"/>
>          <filename name="**/*.hbm.xml"/>
>          <filename name="**/*.html"/>
>        </fileset> 
>      </copy>
>
> HTH Bill

Hello,

Unfortunatly this won't work as a fileset behaves like an 'and' selector 
container.
Therefore quoting http://ant.apache.org/manual/CoreTypes/fileset.html : 
"If any of the selectors within the FileSet do not select the file, the 
file is not considered part of the FileSet"


MAT.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message