ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Using the XML comment character <!-- in Ant
Date Wed, 01 Oct 2003 19:03:41 GMT
Jack Woehr wrote:
> I'm doing some copies with filterset. I'm modifying a JBoss .jcml file. I want
> to conditionally insert XML comment brackets (<!-- -->) in the output.
> 
> I've tried setting a property to the desired text, e.g., various permutations
> of 
> 
> 	<property name=foo value="[!CDATA[<!-- ]]"/>
> 
> etc., all of which makes Ant barf. Any tips on how to do this? Thanks.
> 

Take a look at the error message. You have to escape > in attribute
values as &gt;.
BTW using filters for editing XML files is evil, you should use XSLT
or some other XML aware tool for this task.

J.Pietschmann


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


Mime
View raw message