ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Filter and replace ....
Date Wed, 29 May 2002 21:47:16 GMT
You can use the "replace" task.

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

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

        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 file or for that matter any file. I could use 
but then that will replace only macros. Any suggestions ?

Thanks in advance

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message