ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narayanan, Latchoumi" <lnara...@akamai.com>
Subject RE: Problem in copy task with filtering
Date Tue, 06 Feb 2007 16:57:48 GMT
Thanks Steve,

I am just using a blank space for begintoken/endtoken. It works fine.

Latchoumi 

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Tuesday, February 06, 2007 6:29 AM
To: Ant Users List
Subject: Re: Problem in copy task with filtering

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


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


Mime
View raw message