# ant-user mailing list archives

##### Site index · List index
Message view
Top
From "Das, Kuntal" <Kuntal....@Schwab.com>
Subject Resolved: Filter and replace ....
Date Wed, 29 May 2002 22:33:53 GMT
```Hmmm... that should work. Thanks. How can I not see it ? I had been looking
for a tag like that for a long time, I guess it just missed my attention,
when I saw FilterSet. Thanks, and sorry for bringing up this simple Q, whose

Thanks
-Kuntal-

-----Original Message-----
From: Chris Bailey [mailto:chris@codeintensity.com]
Sent: Wednesday, May 29, 2002 3:29 PM
To: Ant Users List
Subject: RE: Filter and replace ....

Have you looked at the <replace> task?  I believe you could set the token to
be "c:\weblogic", and replace it with "c:\bea".

-----Original Message-----
From: Das, Kuntal [mailto:Kuntal.Das@Schwab.com]
Sent: Wednesday, May 29, 2002 2:44 PM
To: 'Ant Users List'
Subject: Filter and replace ....

Is there any way of replacing any character or word in a file using ant ?
e.g. If I want to replace the path c:\weblogic with c:\bea in the
weblogic.properties file or for that matter any file. I could use FilterSet,
but then that will replace only macros. Any suggestions ?

-Kuntal-

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>