ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Burton" <bi...@progress.com>
Subject Re: need help setting up automated build
Date Mon, 29 Jan 2001 22:21:03 GMT
Hello Kenneth,

"Liu, Kenneth Albert (Kenneth)** CTR **" wrote:
> 
> Ok, suppose I did implement a BuildListener -- how would it then
> call the Ant target to send the email out?

Instead of calling a target, consider extending the current e-mail task to
support adding it's own BuildListener which waits for a BuildFinished
event.  I'm assuming of course that all you want to do is send e-mail and
not perform other tasks when the build completes.

-Bill Burton

> 
> Ken
> 
> > -----Original Message-----
> > From: Nico Seessle [mailto:Nico.Seessle@epost.de]
> > Sent: Friday, January 26, 2001 2:59 AM
> > To: ant-user@jakarta.apache.org
> > Subject: Re: need help setting up automated build
> >
> >
> > ----- Original Message -----
> > From: "Liu, Kenneth Albert (Kenneth)** CTR **" <kenliu@lucent.com>
> > To: <ant-user@jakarta.apache.org>
> > Sent: Friday, January 26, 2001 2:34 AM
> > Subject: need help setting up automated build
> >
> >
> > > Hi all,
> > >
> > > I'm in the process of setting up an automated daily build
> > using ant.  I
> > > would like to set up my script so that it calls a target to
> > compile all
> > the
> > > code, and if the compile fails, it sends out emails.  Otherwise, it
> > > continues and calls a target which executes JUnit.
> > >
> > > However, I'm at a loss on how to create this type of conditional
> > behavior -
> > > can someone help me with this?
> > >
> >
> > Currently it's only possible to let ant do something if it
> > fails to complete
> > if you implement your of BuildListener and pass it to ant. If
> > compilation
> > fails ant will stop, so you need no special conditions to
> > only run your
> > tests upon successful compilation.
> >
> > Nico
> >
> >

Mime
View raw message