Search code examples
nant

echo message with new line in nant


Does anyone know how to output a message using echo with a new line character, in the ant world i used ${line.seperator}, but i dont see any related property in Nant, nor any of the functions provided this info. I also tried the \n escape character but that was printed as it is. An examaple is below

<echo message="spool \n off \n quit" file="${scripts.list}" append="true"/>

Solution

  • I don't know Nant, but the XML entity for newline is usually &#xa;