ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun Ji" <...@pro-unlimited.com>
Subject String replace.
Date Wed, 22 Aug 2007 19:07:10 GMT

Hi, 

Does someone know how to replace a string such as "&lt;" to be "<" in a html file by
ANT. 
The target that I have created in my build.xml is : 
"
... 
<target name="change">
	<replaceregex file="test.html" pattern="\&lt;" replace="<" />
	<replaceregex file="test.html" pattern="\&gt;" replace=">" />
</target>
..
", 

but I see such errors: 
"
The value of attribute "replace" associated with an element type "replaceregex" must not contain
the '<' character.
"


Thanks a lot, 


Charlie

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message