ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Agnew <br...@oopsconsultancy.com>
Subject Re: Replace task value can't take less than sign.
Date Wed, 26 Apr 2006 08:53:20 GMT
I would recommend that if you're doing XML manipulation like the below 
that it's worth looking at the optional task xmltask ( 
http://www.oopsconsultancy.com/software/xmltask ). It's designed 
precisely for doing the sort of stuff you appear to be doing.

Brian

Michael Atlas wrote:
> 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
>
>   

-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd         brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012



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


Mime
View raw message