You can use the "replace" task.

Ex:  <replace file="test.txt" token="c:\weblogic" value="c:\bea"/>






"Das, Kuntal" <[EMAIL PROTECTED]>
05/29/2002 04:43 PM
Please respond to "Ant Users List"

 
        To:     "'Ant Users List'" <[EMAIL PROTECTED]>
        cc: 
        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 ?

Thanks in advance
-Kuntal-

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to