ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Voytitsky <...@sunbay.com>
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 NL.properties file
2. Include this file in your build.xml
        <property file="NL.properties"/>
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 :))

Thx.

-- 
Best regards,
Eugene Voytitsky                            mailto:viy@sunbay.com


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message