ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <leslie.hug...@rubus.com>
Subject RE: need help setting up automated build
Date Tue, 30 Jan 2001 11:07:02 GMT

There's an example using javax.mail in the archives
http://marc.theaimsgroup.com/?l=ant-user&m=86951905205364&w=2

This monitor will email upon success and/or failure of build.

Enjoy,

Les




> -----Original Message-----
> From: Bill Burton [mailto:billb@progress.com]
> Sent: 29 January 2001 22:21
> To: ant-user@jakarta.apache.org
> Subject: Re: need help setting up automated build
> 
> 
> 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