From user-return-71849-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri Aug 5 12:51:41 2011 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47B6A79BA for ; Fri, 5 Aug 2011 12:51:41 +0000 (UTC) Received: (qmail 83588 invoked by uid 500); 5 Aug 2011 12:51:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83442 invoked by uid 500); 5 Aug 2011 12:51:39 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 83434 invoked by uid 99); 5 Aug 2011 12:51:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 12:51:39 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.213.151] (HELO nm7-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.151) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 05 Aug 2011 12:51:30 +0000 Received: from [98.139.212.149] by nm7.bullet.mail.bf1.yahoo.com with NNFMP; 05 Aug 2011 12:51:09 -0000 Received: from [98.139.212.209] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 05 Aug 2011 12:51:09 -0000 Received: from [127.0.0.1] by omp1018.mail.bf1.yahoo.com with NNFMP; 05 Aug 2011 12:51:09 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 757663.24598.bm@omp1018.mail.bf1.yahoo.com Received: (qmail 40836 invoked by uid 60001); 5 Aug 2011 12:51:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1312548669; bh=mXlajBru+jD2/aDkOkiB4xzyIfuzSo+YZC5sgMX2RHA=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=0XqxPD/xvKC5wdMe+sSBo0gdj82/88dZ7/aAeb3lYbZUEaaXuI1ypUzI3asGiGDRjNb2lyBB1igTRhHirB99gRMeyrB9yeqxILDL5vLD3NM2trpOJfOqM3JnAoyYJi7dSc2R/mTF/VxouLmiB/rTQqiX+M/wmcAA93mcFcRMz+w= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=PXvZ5hCEsfZhiSSNNrdwouHubF+TVN3Wk0MZONdsk7VRj8snzYSA9GGmc2XqAXVS9eBTKlPo7mLFh7BJhD2qvwiE6nYvTN44FAH9qwWDSOcG0jzKQFap6EP7pUXT3jCnm8C8J/itOh4++6zCRHbXg9Mkn6T3LTf9XD2lKiQpH5Q=; X-YMail-OSG: IF5CyTMVM1lqiUIu9j1VcGNh4GtAC7EPQRf7GBPeyhRoX6Q T..IGJoNxn9Ks0ZLKAqe9WgRD0DZg6gk6q4l.CoG6Py7fdU1Uyk7r02XO7Ta rn6szuDNW0CxuyIVQkDN0qEoROKiV7YS8HzCdtQNgTrMmMLFjfPHj1IXAeCa 2t8veZiSjKKdEW2a_y_5SmkTBWuOIXuP8qhf0kDGkkUqBjzafE4f9V7V8HY_ .w3K1yPLiAFDE_OiaxuBhYJkoPrCeWur8cMU5IfnVER8ahcGPGZLJ9M2W_N_ aVtdFZ1YapZcZC14R5bCEqV9XkjmlaJBWAiekXvCjBLbxb6EhBVHS0iqhlmP hAKiYO4JErQD2Ta_XcRZYoHJ.4bwvzsjj5f2IOB1s91b_3nS_a6XTRE.xaIX 01HA8WqN0DBBnCkP9mPTKZcqiu1pECgGaB78L2QybELMxrJftR8oFwpFJz50 T9GRuhIoitlP4ME1eR_Ko3gwVS3unAUsa.SB7LL48M5I5KQ8uEYSAxuH3GTB ubPQR1PuTPUJHBow7xx7BoXmxWh7UZFE7oMqkjnSJMyqg7fZg3JdV9In9qcA wZ87kvMMdpc1Ro0GFbGMNxB8298SFL1Q3s_FpM8PCLiyFcW9Mfak7VtiOPQR rkPl.yUksZasdhE_2a_NVqHTiy__NeKnLItB0J8QIe13lGXJefA-- Received: from [67.183.33.125] by web161206.mail.bf1.yahoo.com via HTTP; Fri, 05 Aug 2011 05:51:09 PDT X-Mailer: YahooMailWebService/0.8.113.313619 References: <1312534947055-4669046.post@n5.nabble.com> Message-ID: <1312548669.40752.YahooMailNeo@web161206.mail.bf1.yahoo.com> Date: Fri, 5 Aug 2011 05:51:09 -0700 (PDT) From: Vimil Saju Reply-To: Vimil Saju Subject: Re: Mail task on Target failure To: Ant Users List In-Reply-To: <1312534947055-4669046.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-30584172-1312548669=:40752" --0-30584172-1312548669=:40752 Content-Type: text/plain; charset=us-ascii Use the trycatch task from ant-contrib ________________________________ From: vino_hymi To: user@ant.apache.org Sent: Friday, August 5, 2011 2:02 AM Subject: Mail task on Target failure Hi, I have ant project where there is set of targets. After successful completion of all targets I call mail target at the end to send a mail with attached logs with message build successful. Now, my challenge is if one of the target fails then build exits so it will not proceed to mail target which is the last one to perform on completion of all. How can I use mail target to send mail on any target failure? Any hints? -Vinodh Kumar -- View this message in context: http://ant.1045680.n5.nabble.com/Mail-task-on-Target-failure-tp4669046p4669046.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --0-30584172-1312548669=:40752--