You need to use entity escapes for characters that have special meaning in XML (like <, >, ", ', &).
____________________________________________________________________________________________
Jeffrey E. (Jeff) Care
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
WebSphere Mosiac
WebSphere Brandmark




"Michael Atlas" <[EMAIL PROTECTED]>

04/25/2006 11:35 AM

Please respond to
"Ant Users List" <user@ant.apache.org>

To
<user@ant.apache.org>
cc
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to