ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Putting markup in the message of an echo task
Date Mon, 24 Sep 2007 07:36:53 GMT
 

Hi,

-----Original Message-----
From: boomdizzle [mailto:amresh_prasad@yahoo.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message