Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 35200 invoked from network); 4 Mar 2003 21:41:03 -0000 Received: from sandvine.com (HELO mail.sandvine.com) (199.243.201.138) by daedalus.apache.org with SMTP; 4 Mar 2003 21:41:03 -0000 Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Tue, 4 Mar 2003 16:41:08 -0500 Message-ID: From: David McTavish To: 'Ant Users List' Subject: RE: Emailing Build results Date: Tue, 4 Mar 2003 16:41:02 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N you could just wait for the to finish completing, instead of having to do the waitfor, and ignore the parallel/sequential logic altogether. what you probably want, is try/catch from antelope. d. -----Original Message----- From: Alexei Betin [mailto:ABetin@futuretrade.com] Sent: Tuesday, March 04, 2003 4:39 PM To: Ant Users List Subject: RE: Emailing Build results well, in fact I'd need rather something like: > -----Original Message----- > From: Alexei Betin > Sent: Tuesday, March 04, 2003 1:35 PM > To: Ant Users List > Subject: RE: Emailing Build results > > > Aha, I am getting closer... > > failing task does terminate the build, but > by using the structure like below I seem to be getting > what I want: > > > > > > > Thanks for all help! > > ~Alexei > > > -----Original Message----- > > From: Chris Reeves [mailto:CReeves@medfusion.net] > > Sent: Tuesday, March 04, 2003 1:26 PM > > To: Ant Users List > > Subject: RE: Emailing Build results > > > > > > Probably so. Like I said, it's been working for months, so > > I'm gonna let > > it be. > > > > However, I'd like to hear if you experiment with it. > > > > Thanks, > > Chris > > > > > -----Original Message----- > > > From: Alexei Betin [mailto:ABetin@futuretrade.com] > > > Sent: Tuesday, March 04, 2003 4:16 PM > > > To: Ant Users List > > > Subject: RE: Emailing Build results > > > > > > > > > I like this approach except for using , > > > I wonder if there is a way to do it using instead? > > > > > > Thanks, > > > ~Alexei > > > > > > > > > > -----Original Message----- > > > > From: Chris Reeves [mailto:CReeves@medfusion.net] > > > > Sent: Tuesday, March 04, 2003 1:10 PM > > > > To: Ant Users List > > > > Subject: RE: Emailing Build results > > > > > > > > > > > > I use a slightly different approach to have the buld > results sent. > > > > > > > > First, I created a second, separate ant build script that > > wraps my > > > > build.xml file. > > > > > > > > This second script checks the project out of cvs, then > > executes the > > > > build.xml present at the root of the project. When the ant call > > > > completes, the log file is attached to a mail message. > > This occurs > > > > even if the wrapped build fails. > > > > > > > > I'm sure there's a cleaner way to do this, but it has run > > > for months > > > > with no problems. > > > > > > > > Additionally, it's great to see the "Failed" or > > "Succeeded" on the > > > > subject line, so I don't have to open each message and > > > scour the logs > > > > just to discover the build succeeded. > > > > > > > > Chris > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > executable = > "/usr/java/ant/bin/ant" > > > > output = > > > > "${log.dir}/nightly_build_results_${filename.suffix}.txt" > > > > resultproperty = "project.build.result" > > > > outputproperty = > "project.build.output"> > > > > "${project.anttarget}"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="Failed!!!"> > > > > > > > arg2="${project.build.result}"/> > > > > > > > > > > > > > > > value="Succeeded!!!"> > > > > > > > arg2="${project.build.result}"/> > > > > > > > > > > > > "${to.address}" > > > > from = > > "${from.address}" > > > > subject = > "${build.result} > > > > ${project.longname} Nightly Build - ${build.time}" > > > > mailhost = > "${smtp.server}" > > > > messagefile = > > > > "${log.dir}/nightly_build_results_${filename.suffix}.txt"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > -----Original Message----- > > > > > From: Alexei Betin [mailto:ABetin@futuretrade.com] > > > > > Sent: Tuesday, March 04, 2003 4:01 PM > > > > > To: Ant Users List > > > > > Subject: Emailing Build results > > > > > > > > > > > > > > > what are reasonable options for emailing nightly > Build results? > > > > > > > > > > MailLogger seems to have no way to attach the build log > > > > > or use properties in Subject, > > > > > > > > > > also I am already using NoBannerLogger - which leaves no > > > > > place for MailLogger... > > > > > > > > > > task cannot help me, because if I put it at the > > end of my > > > > > build script, and the build fails, it'll never get to > > execute it. > > > > > > > > > > Is there a way to ensure a task is always called at the end? > > > > > maybe using different build files with or ? > > > > > would not help me here because it can only wrap > > > > > tasks and not targets... > > > > > > > > > > Finally, I understand I can write my own Logger, > > > > > but for a couple of reasons I don't want to - I would > > > rather prefer > > > > > to get the job done by some batch file, but I wonder if I > > > am missing > > > > > a nice pure-Ant solution > > > > > > > > > > Thanks, > > > > > ~Alexei > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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 > > > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > --------------------------------------------------------------------- > 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 For additional commands, e-mail: user-help@ant.apache.org