ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <>
Subject Re: Replace task value can't take less than sign.
Date Tue, 25 Apr 2006 15:49:37 GMT
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 

"Michael Atlas" <> 
04/25/2006 11:35 AM
Please respond to
"Ant Users List" <>


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}" 
                                   <include name="web.xml"/>
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:
For additional commands, e-mail:

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message