ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivas_Pasupar...@i2.com
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" <Kuntal.Das@Schwab.com>
05/29/2002 04:43 PM
Please respond to "Ant Users List"

 
        To:     "'Ant Users List'" <ant-user@jakarta.apache.org>
        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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




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