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"/>
I don't know Nant, but the XML entity for newline is usually 

In NAnt 0.90, I used the environment::newline() function to put in newlines where I wanted them. But since it's a little unwieldy to use ${environment::newline()}, I assigned it to a shortened property name that I could use throughout my script.
Unfortunately for 0.86 users, the environment::newline() function wasn't added till 0.90-alpha1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With