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 F06E54F50 for ; Thu, 2 Jun 2011 15:20:25 +0000 (UTC) Received: (qmail 32512 invoked by uid 500); 2 Jun 2011 15:20:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 32470 invoked by uid 500); 2 Jun 2011 15:20:25 -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 32462 invoked by uid 99); 2 Jun 2011 15:20:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 15:20:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.52.199] (HELO nm2.bullet.mail.ac4.yahoo.com) (98.139.52.199) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Jun 2011 15:20:14 +0000 Received: from [98.139.52.190] by nm2.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2011 15:19:50 -0000 Received: from [98.139.52.180] by tm3.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2011 15:19:50 -0000 Received: from [127.0.0.1] by omp1063.mail.ac4.yahoo.com with NNFMP; 02 Jun 2011 15:19:50 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 597049.23353.bm@omp1063.mail.ac4.yahoo.com Received: (qmail 10899 invoked by uid 60001); 2 Jun 2011 15:19:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1307027990; bh=TWXfvykKbaiU2NAtdj6WSof/8TC+GHrrc/w/fYlEmec=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=V/akaBPNOEzP08IxCF16SZdVIRRBh7ZP8UjhTyW/rvLtVM6j4/hjNGgCTPicBDs8pqgKxCRtYfK2WshTVMxNSza2Et2K00Q4qqTaHkuuNkVwvbgA8ijfRfnh7Q/MiL11mNtKGbP8VJkOh3Sa/MZ78qSkCv2skdD+ylq/Qs3nDGI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=C4LEq9WVGmHa0aVR8vl+T37Hv9MZUGWdyxRdiFQ2R2vlAjf9oNn106Le7QYI6Y+xGc4rei4N/oZs2flICz8H9+UcfjSD+POCsbKitl6vmPnw7MIT3zwQbP+FgLKf4z0wQFpbkxrUT0otR2Rq1NCZHuwidLiTjvwW8bMJ1BG1pZ4=; Message-ID: <350948.8316.qm@web65709.mail.ac4.yahoo.com> X-YMail-OSG: aDj4RgwVM1naz1cmYQ7JODxyMWk.MSo9gbk5TaKQgzn1Lgc zCduJ3keGNRq9pKBIMpKSHizj3j8ZXL4wwQqqNgWTwVp2VTYtiUPEIjv4oY6 B3Lhy_abaPIDh2x17Oe3MuEHlje7DikH1LHEHVEd4dOQnfSiWz9ltgEyhkK_ UbTfPDPuyJRNd3JhKx9n98.OsCPlR1R7xXDirnamlnhMV5nk5A19j6VezEYT vHR.FO3JqU3KEic1pxSwXOY.sn5Yxd8lJS4wLHGq8WEco68PaUAh3yv9howK O21bdcjwuzl0KMJE1RD_kOsZIqKWunKKyLBpnXk5iov3lCIWUAoXea5DxUcS BazuKVrbOYaf157xjDF0Y79YydAcrs566yPIcgC4urTtRwNGU0YYZUZWyPts yZAfF1ta86L2RCQ-- Received: from [98.238.28.69] by web65709.mail.ac4.yahoo.com via HTTP; Thu, 02 Jun 2011 08:19:50 PDT X-Mailer: YahooMailRC/570 YahooMailWebService/0.8.111.303096 References: <275712.76262.qm@web65707.mail.ac4.yahoo.com> Date: Thu, 2 Jun 2011 08:19:50 -0700 (PDT) From: Eric Fetzer Subject: Re: Do things based on project success or failure To: Ant Users List In-Reply-To: <275712.76262.qm@web65707.mail.ac4.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-302660888-1307027990=:8316" X-Virus-Checked: Checked by ClamAV on apache.org --0-302660888-1307027990=:8316 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Of course this presents me another issue.=A0 How do I gather up all of the = command =0Aline arguments that were passed to me so that I can re-pass them= to the next ant =0Ascript.=A0 Is there a way to say:=A0 ?=0A=0AThanks,=0AEric= =0A=0A=0A=0A=0A________________________________=0AFrom: Eric Fetzer =0ATo: Ant Users =0ASent: Thu, June 2, = 2011 9:02:14 AM=0ASubject: Do things based on project success or failure=0A= =0AI have to update a database one way or another based on project success = or =0Afailure.=A0 So I'm messing around with the task with errorprop= erty =0Aattribute.=A0 I'm trying to make it so that failure will test one w= ay vs. success =0Atesting another.=A0 The best thing I can come up with is = the following:=0A=0A<------------------------------------------------------= ----------->=0ABuild File 1:=0A=0A= =0A=A0=0A=A0=0A=A0=A0=A0 =0A=A0=A0=A0=A0=A0 =0A=A0=A0=A0 =0A=A0=A0=A0 =0A=A0=A0 =0A=A0=A0=A0 =0A=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0= =A0=A0=A0 =0A=A0=A0=A0=A0=A0 =0A=A0= =A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0=A0=A0 = =0A=A0=A0=A0=A0=A0 =0A=A0=A0=A0 =0A=A0=0A=0A= =0ABuild File 2:=0A=0A=0A=A0=0A=A0= =0A=A0=A0 =0A=A0=A0 =0A=A0=A0= =A0=A0 =0A=A0=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0= =0A=A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0=A0 = =0A=A0=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0 =0A=A0=A0 =0A=A0=0A=0A=0A=0A=0ASo if I pass >ant -f test.xml -Dgood=3D"true"=0AI = end up in the success code.=A0 Or if I pass >ant -f test.xml =0A-Dgood=3D"a= nythingElse"=0AI end up in the failure code.=0A=0ADoes anyone have a more g= raceful way to do this?=0A=0AThanks,=0AEric --0-302660888-1307027990=:8316--