ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Voytitsky <>
Subject Re: message mail
Date Tue, 28 May 2002 07:40:09 GMT

AZ> I try to send mail via ant mail target
AZ> <property name="message" value="line 1 \n line 2"/>
AZ> the result body is     line 1 \n line 2
AZ> is there any option to send 2 lines in the message ( with out file) ?

(Trick with \n)
1. Put single line "NL=\n" in file
2. Include this file in your build.xml
        <property file=""/>
3. Now may use ${NL} as "\n", for example
        <property name="message" value="line 1 ${NL} line 2"/>

BTW. Does anyone suggest more simple way to use special symbols like
\n,\t,etc. within attribute value. I surfed Ant 1.4.1 docs and couldn't find answer.
(Guess answer may be in XML docs :))


Best regards,
Eugene Voytitsky                  

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message