try <echoxml> instead of <echo> Jan
>-----Ursprüngliche Nachricht----- >Von: David Weintraub [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 24. September 2007 07:45 >An: Ant Users List >Betreff: Re: Putting markup in the message of an echo task > >Hmm... I just tried this with no problem. Do you want the "<" and ">" >in the file you're creating? Then, I found this works: > ><echo message="<p>{latest.error}" file="${filename}" >append="true"/> > >Notice no spaces... > >On 9/24/07, boomdizzle <[EMAIL PROTECTED]> wrote: >> >> Forgot to mention, that I tried with '& lt ;' and '& gt ;' >(spaces added on >> purpose), but when the file is included directly in html, it >displays the >> <p> inline and does not process it as a html tag. So that >doesn't do it for >> me either. >> >> Thanks, >> Boom >> >> >> >> boomdizzle wrote: >> > >> > 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. >> > >> > Escaping the '<' with '\' does not seem to work. I know >this should be >> > possible - I'm pretty sure I am not the first one wanting >to echo markup >> > to a file. >> > >> > Can someone point me to the obvious thing I am missing, >> > >> > Thanks, >> > Boom >> > >> > >> > >> >> -- >> View this message in context: >http://www.nabble.com/Putting-markup-in-the-message-of-an-echo- >task-tf4507116.html#a12854094 >> >> Sent from the Ant - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > >-- >-- >David Weintraub >[EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
