ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Applying a filterset
Date Wed, 30 Jul 2003 17:16:24 GMT
Exclude binary files from the filtered copy operation, and copy the 
binary files in a separate <copy> that is unfiltered.  That is just how 
its done.  I believe the <copy> or <filterset> docs mention this 
warning too :)

	Erik


On Wednesday, July 30, 2003, at 12:58  PM, Peter Smith wrote:

> Hi all,
>
> I have a text file with a list of files that I am copying.  I use the
> fileset and includesfile to copy those over.  But now I need to send 
> all the
> text files through a filter.  So I added the filter to the copy task, 
> but
> the filter is messing up the images.  Can anyone suggest how I can get 
> the
> filter to apply only to text files?
>
> Thanks, Peter
>
> Ant Copy:
>     <copy todir="${my.client.working.dir}">
>       <fileset dir="${my.common.web.dir}"
>                includesfile="${my.web.common.files.list}"/>
>       <filterset>
>         <filter token="tokensPrefix" value="${my.tokens.prefix}"/>
>       </filterset>
>       <filterset>
>         <filtersfile file="${my.tokens.file}"/>
>       </filterset>
>       <filterset refid="default_filters"/>
>     </copy>
>
> File sample:
>
> content/styles/main.css
> images/en/buttons/update.gif
> images/en/buttons/save.gif
> WEB-INF/struts-config.xml
> WEB-INF/tiles-defs.xml
> WEB-INF/validation.xml
> WEB-INF/web.xml
>
> -- 
> Peter Smith
> Software Engineer
> InfoNow Corporation
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


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


Mime
View raw message