ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
Subject RE: Replace task value can't take less than sign.
Date Tue, 25 Apr 2006 15:39:10 GMT
XML escapes are just like HTML.

So
< = &lt;
> = &gt;
& = &amp;
etc.

Keith


-----Original Message-----
From: Michael Atlas [mailto:MAtlas@basistech.com] 
Sent: 25 April 2006 16:36
To: user@ant.apache.org
Subject: Replace task value can't take less than sign.


This is the task I am trying to run:

<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++-->
<target name="prepareWebXml" 
description="Make web.xml suitable for SSL on production server">
		<replace dir="${web.inf}" value="</auth-constraint>">
		  <include name="web.xml"/>
		  <replacetoken></auth-constraint>
  	 					<user-data-constraint>
 
<transport-guarantee>
 							   CONFIDENTIAL
 
</transport-guarantee>
						</user-data-constraint>
		  </replacetoken>
		</replace>
</target>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++-->
I get this error:
The value of attribute "value" associated with an element type "replace"
must not contain the '<' character.

How can I escape the "<" sign in my value properly?

Thanks in advance.


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


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


Mime
View raw message