ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Problem in copy task with filtering
Date Tue, 06 Feb 2007 11:28:58 GMT
Narayanan, Latchoumi wrote:
> 
> Hi all,
> 
> In my build script I am using,
> 
> <copy file="${webapp.home}/WEB-INF/web.xml"
> toFile="${build.root}/WEB-INF/web.xml"
> 				   filtering="on" overwrite="true">
>   <filterset>
> 	 <filter token="spoofFilter" value="permissionFilter"/>
>   </filterset>
> </copy>
> 
> This code is copying the web.xml file, but not replacing the word
> "spoofFilter" with "permissionFilter" as I am trying to do,
> Can someone tell me what I am doing wrong here.

tokens have a prefix around them, something like @spoofFilter@ ; you can 
change the values with the begintoken/endtoken attributes,

-steve

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


Mime
View raw message