ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <zod...@holoweb.net>
Subject Re: Fail task
Date Fri, 16 Aug 2002 19:22:58 GMT
Why not just do 

<fail>this
Is
My
Message
</fail>

There's a bug that a missing 'message' attribute is printed as 'null' but
you can work around it with

<fail message="line1">
line2
line3
...
</fail>

L.

On 8/16/02 9:44 AM, "Riffe, Melvin" <melvin.riffe@capitalone.com> wrote:

> hey vince,
> 
> i've just started using this construct:
> 
> <loadfile property="myMessage" srcFile="fail.message" />
> <fail message="${myMessage}" />
> 
> i don't use '\n' or '\t' in the text; they're not translated but spaces and
> line breaks are preserved.
> 
> HTH
> 
> mel riffe
> 
> 
> -----Original Message-----
> From: Buonassisi, Vincent [mailto:vbuona01@sprintspectrum.com]
> Sent: Friday, August 16, 2002 9:04 AM
> To: 'ant-user@jakarta.apache.org'
> Subject: Fail task
> 
> 
> Hi,
> 
> It would be nice if the task <fail> allowed the <echo> task as a nested
> task.  But, since i can't have this how would i get a multiline message
> displayed using the <fail> task?  is it possible to embed newlines (\n| and
> tabs (\t) in the message?
> 
> thanks,
> 
> vince
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> **************************************************************************
> The information transmitted herewith is sensitive information intended only
> for use by the individual or entity to which it is addressed. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any review, retransmission, dissemination, distribution, copying or other
> use of, or taking of any action in reliance upon this information is
> strictly prohibited. If you have received this communication in error,
> please contact the sender and delete the material from your computer.
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 


--
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