rajeshkumar created the topic: How to put new line in apache ant message
How to put new line in Apache Ant echo task and mail task:
Answer:
line.separator is Java System Properties which can be used for this purpose.
Found the solution (tried with Ant 1.7.0):
1. You might wrap the message-texts within the XML file.
2. If you put ${line.separator} in front of the line every space before that line separator will be trimmed away.
Example Program:
Note:
If new properties get added (it happens), expect them to appear under the “ant.” and “org.apache.tools.ant” prefixes, unless the developers have a very good reason to use another prefix. Accordingly, please avoid using properties that begin with these prefixes. This protects you from future Ant releases breaking your build file.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND