Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 2808 invoked from network); 20 Nov 2003 20:03:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Nov 2003 20:03:48 -0000 Received: (qmail 7466 invoked by uid 500); 20 Nov 2003 20:03:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 7186 invoked by uid 500); 20 Nov 2003 20:03:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 7173 invoked from network); 20 Nov 2003 20:03:29 -0000 Received: from unknown (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 20 Nov 2003 20:03:29 -0000 Received: from DJ0X820J (p5080eb9d.dip0.t-ipconnect.de [80.128.235.157]) by relay.t-online-com.de (SMTPSVC(1.0.0.2)) with ESMTP id C4EF714CB49 for ; Thu, 20 Nov 2003 20:50:42 +0100 (CET) Message-ID: <001f01c3afa1$b1987520$020200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: <94826EE2B325E74CA998C1B9F9DEE8F002B95B8B@afrsmailhrs> Subject: Re: task result? Date: Thu, 20 Nov 2003 21:05:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 1) ant-contrib provides a try/catch task 2) ant comes with a MailLogger which sends emails automatically at the end of a build, both in case of success or in case of failure. The email recipients and the subjects are different according to whether the build is successful or not. Cheers, Antoine ----- Original Message ----- From: "Cantrell David M SSgt AFRS/RSIDS" To: "'Ant Users List'" Sent: Thursday, November 20, 2003 5:56 PM Subject: RE: task result? > I was talking to a co-worker the other day, and I mentioned that I'd like to > see something like this in ant: > > > ... > > > > ... > > > > Keep in mind this is just an idea, and we are evaluating ant for future use > so I'm not sure if this has already been brought up and then put to rest. > > -dave > > -----Original Message----- > From: Christopher Schultz [mailto:christopher.d.schultz@comcast.net] > Sent: Thursday, November 20, 2003 10:15 AM > To: Ant Users List > Subject: task result? > > All, > I have searched the archives and found a possible course of action, but > I wanted to run it by everyone and see if there was a better way to do it. > > I am re-vamping the nightly build for my project. The project itself > uses ant, and I will be using ant for the nightly build as well. What > I'd like to do is have a separate build script that will start a > recorder, do a cvs checkout, compile, unit test, etc. ultimately ending > up with a deployment to our test server. > > I have something like this: > > > target="compile" > inheritall="false" /> > > target="test" > inheritall="false" /> > > . > . > . > > > > > The thing is, I'd like to bail out if the compile fails, and still send > the email. From a shell-script, I would just check the exit code of the > task and jump to the mail task, but it looks like I can't do that here. > > I found Antelope's task, but that will require me to modify > the build script for my application just so that the nightly build > script can read properties from it (like, I'd set "compile.success" > after the task in the build script, then check its value in the > night build script). > > Is this the best way to do this? What other options do I have? Should I > consider just dropping ant and using straight shell scripts for the > nightly build? > > Thanks in advance for any advice. > > -chris > > > --------------------------------------------------------------------- > 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