Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 80243 invoked from network); 25 Nov 2005 10:42:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Nov 2005 10:42:53 -0000 Received: (qmail 66448 invoked by uid 500); 25 Nov 2005 10:42:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66403 invoked by uid 500); 25 Nov 2005 10:42:42 -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 66378 invoked by uid 99); 25 Nov 2005 10:42:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 02:42:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [160.53.250.150] (HELO smtp.etat-ge.ch) (160.53.250.150) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 02:44:12 -0800 Received: from fregate.ge-admin.ad.etat-ge.ch ([10.137.224.84]) by smtp2.ceti.etat-ge.ch with InterScan Messaging Security Suite; Fri, 25 Nov 2005 11:42:17 +0100 Received: from capucin.ge-admin.ad.etat-ge.ch ([10.137.224.82]) by fregate.ge-admin.ad.etat-ge.ch with Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Nov 2005 11:42:17 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Recovering the return code from the called build.xml into the calling build.xml Date: Fri, 25 Nov 2005 11:42:19 +0100 Message-ID: <2A8BA47B2326B14E96BCB7467F0EFEDB3886FC@capucin.ge-admin.ad.etat-ge.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Recovering the return code from the called build.xml into the calling build.xml Thread-Index: AcXxO2dLbiIb0eKsRQOVkqln6SzEmwAbXbog From: "Bhatia Saurabh \(CHA\)" To: "Ant Users List" Cc: , "Bhatia Saurabh \(CHA\)" X-OriginalArrivalTime: 25 Nov 2005 10:42:17.0580 (UTC) FILETIME=[E7D08AC0:01C5F1AC] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Antoine, After all my tests on this taskdef, I found that an antcallback works in = the scope of 1 single build.xml file ONLY. If my 1st build.xml file = makes a call to a target in another build.xml which in turn does an exec = on the host system, I have no way of recovering the = resultproperty=3D"my.property" in the first build.xml. Example: Caller code -------------------------------- build1.xml =09 =09 =09 =09 =20 Called code................................. build2.xml Thanks a lot for the pointers anyway... I hope I do find a solution to = this really....Its like saying that a Java object can recover the return = value only if the called method is defined in the same object. Saurabh -----Message d'origine----- De : Antoine Levy-Lambert [mailto:antoine@gmx.de]=20 Envoy=E9 : jeudi, 24. novembre 2005 22:09 =C0 : Ant Users List Objet : Re: Recovering the return code from the called build.xml into = the calling build.xml Hello Saurabh, look at using ant-contrib. http://ant-contrib.sourceforge.net/tasks/tasks/antcallback_task.html Cheers, Antoine > --- Urspr=FCngliche Nachricht --- > Von: "Bhatia Saurabh \(CHA\)" > An: > Betreff: Recovering the return code from the called build.xml into the > calling build.xml > Datum: Thu, 24 Nov 2005 10:49:44 +0100 >=20 > Dear Community, >=20 > My calling build.xml makes a call to a target defined in a different > build.xml and this target does an exec. I do get the return value from > this exec in the called build.xml but I am looking for a solution for > recovering this resultproperty=3D"run-test.result" in the calling code = so > that I can invoke other targets in my calling build.xml based on the > return code I got from the called build.xml. (e.g I would like to send > an email with success notification if the return code =3D 0 or a = failure > email notification if the return code is anything but 0). >=20 > Really appreciate your solutions and thanking in advance. >=20 > Saurabh --------------------------------------------------------------------- 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