ant-user mailing list archives

Site index · List index
Message view
Top
Subject RE: How to email only the error part
Date Fri, 07 Mar 2008 00:53:19 GMT
You could use the LoadFile task with a regex filter to read parts of the
log into a property.  Then use that property as the message body for the

<filterchain>
<linecontainsregexp>
<regexp pattern="someRegexToGrabWhatYouWant"/>
</linecontainsregexp>
</filterchain>

Francis

-----Original Message-----
From: Lenhof,Danny [mailto:Danny.Lenhof@gartner.com]
Sent: Thursday, March 06, 2008 10:35 AM
To: Ant Users List
Subject: RE: How to email only the error part

How about perl? Perl is very handy for extracting text from\to with a
set of pre-defined parameters.

-Danny

-----Original Message-----
From: I am Who i am [mailto:ragjan@gmail.com]
Sent: Thursday, March 06, 2008 11:45 AM
To: user@ant.apache.org
Subject: How to email only the error part

Hi All

Is there a way to email only, the error part from ant

for eg. lets say i'm compiling with ant, and its being written to a log
file, when error happend, instead of attaching full log file i just want
to send the portion where its failing with "Compliation Error' part

This e-mail message, including any attachments, is for the sole use of
the person to whom it has been sent, and may contain information that is
confidential or legally protected. If you are not the intended recipient
or have received this message in error, you are not authorized to copy,
distribute, or otherwise use this message or its attachments. Please
notify the sender immediately by return e-mail and permanently delete
this message and any attachments.  Gartner makes no warranty that this
e-mail is error or virus free.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org