Well, my intention is not to email each developer involved, but certain
selected people for the various tasks (cvs checkout, copiling source code,
building db, etc). then those people can review the problem they are
assigned to and delegate to appropriate developer(s).

i guess my work is going to be tedious, there is no smooth way of doing
this. I still feel that it would be best if ant would allow us to set a
property for each task in case of error. that would make it much smoother.

Thanks,
-Riz.

-----Original Message-----
From: Ivan Ivanov [mailto:[EMAIL PROTECTED]
Sent: Friday, August 19, 2005 12:58 PM
To: Ant Users List
Subject: RE: CVS failure notification..


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]




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

Reply via email to