Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 1057 invoked from network); 5 Dec 2002 21:52:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Dec 2002 21:52:37 -0000 Received: (qmail 20366 invoked by uid 97); 5 Dec 2002 21:53:38 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 20350 invoked by uid 97); 5 Dec 2002 21:53:38 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 20338 invoked by uid 98); 5 Dec 2002 21:53:37 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Sent: 5 Dec 2002 21:52:30 GMT Message-ID: <3DEFCA9B.8060705@ehatchersolutions.com> Date: Thu, 05 Dec 2002 16:52:27 -0500 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Question about nightly builds using ant.... References: <3DEFC3CE.7346C286@sun.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N How about using Anthill or CruiseControl? They'd take care of that for you. Rahul Biswas wrote: > I am trying to accomplish the following: > > have ant based nightly build scripts which are run through cron job. > The nightly ant build script is a root ant script which itself invokes other ant scripts (for different component) to do the build. > At the end of the build (successful/failure - which can be for reasons other than javac ) I want to be able to send a mail. > > At this point of time...I have done this using two cron jobs, one does the build other does the mailing, with the body containing the output file from the previous job. Problem I encountered in a single ant job was that on failure, the ant script would stop at the call and not execute the mail task. > Is there a better way to accomplish this ? > > I want to be able to flag my mail subject as Success/failure so that we have the ability to filter out successul builds if wanted in the mail. Is there a way to set a property on failure or any other way to do this one ? > > Thanks & Regards > Rahul > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: