try the replaceregexp optional task.
http://ant.apache.org/manual/OptionalTasks/replaceregexp.html
Thursday, July 10, 2003 7:28 AM
To: user@ant.apache.org
cc:
From: "sun zheng" <zheng_sun@hotmail.com>
Subject: replace token uses wildcard?
Hi all,
I want to do something like...
<replace file="aaa.xml" token="http://*/index.html"
value="http://localhost:8081/index.html" />
it does not work since token does not support such a wildcard -- * .
as u c, i want to replace any host+port in aaa.xml file to localhost:8081.
is it possible to do this by ant?
with best wishes
Zheng Sun
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|