ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yyy Xxx <gj...@yahoo.com>
Subject Re: Fileset customized per customer?
Date Fri, 16 Apr 2004 17:25:24 GMT
You could also customize your fileset using "selectors".  See the

   Concepts & Types->Core Types->Selectors

section of the ANT manual.  I think you'd primarily be interested in
the <present> selector, possibly within <and>/<or>/<not> selectors.

>From the manual...


> Present Selector
> ----------------
> The <present> tag selects files that have an equivalent file in
> another directory tree.  ...
>
> Here is an example of how to use the Present Selector:
>
> <fileset dir="${ant.1.5}/src/main" includes="**/*.java">
>     <present present="srconly" targetdir="${ant.1.4.1}/src/main"/>
> </fileset>
>
> Selects all the Java source files which are new in the 1.5 release.


Jan.Materne@rzf.fin-nrw.de wrote:

> - copy all files in config/USER to a temp dir
> - copy all files in config/ to a temp dir without overwriting
> - use temp dir instead config
>

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


Mime
View raw message