Hi,

-----Original Message-----
From: boomdizzle [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 24, 2007 7:22 AM
To: user@ant.apache.org
Subject: Putting markup in the message of an echo task

/*
Hi,

I want to echo html to a file from an ant script. Obviously, this is not
working

<echo file="${filename}" message="<p>@{latest.error}" append="true"/>

I get the error: The value of attribute "message" associated with an
element
type "echo" must not contain the '<' character.
[ ... ]
*/

for ant 1.6.5, means ant version < 1.7.x simply use =

<echo ...>
<![CDATA[
...
]]>
</echo>

and no masking required.

for ant 1.7.x use =

the same as above or 
<echoxml>, as Jan already mentioned

Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to