Hello,

--- Rizwan Merchant <[EMAIL PROTECTED]> wrote:

> I looked through Mailloggers..it doesnt seem to have
> the capability to send
> out emails based on specific target errors..i.e
> error on target 1 --> send email to person 1
> error on target 2 --> send email to person 2
Yes, I see... Well, I am afraid you should use the
<record> solution. The trickiest part is the parsing
of the output

> 
> Also, there doesnt seem to be any concrete examples
> of how to use
> Mailloggers on the ant site..
Well, the usage of loggers and listeners is pretty
straightforward, just give -logger option to the ant
launching script:
ant -logger fully.qualified.class.name
or in the case of MailLogger 
ant -logger org.apache.tools.ant.listener.MailLogger
-propertyfile my_MailLogger.properties
where my_MailLogger.properties contains the setting
needed by MailLogger.

Let me ask you: why do you want to do this? It is a
good idea to have the developers informed that the
part from the build.xml they are responsible for is
not working. However, in order to send a useful report
you should collect info about the machine on which the
build script is running (at least its hostname, to
know where this report comes from), than java version,
ant version. Next, even if the developers receive that
error mails, the fault might not be theirs - the most
simple example is a guy writing some non-compiling
java code, then the compile target fails of course and
the guy that has written the compile targets gets an
email?!! What are they supposed do then - go and
correct the first guy's wrong code?

Regards
Ivan


                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to