Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39305 invoked from network); 21 Mar 2007 08:26:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2007 08:26:31 -0000 Received: (qmail 22076 invoked by uid 500); 21 Mar 2007 08:26:33 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 22036 invoked by uid 500); 21 Mar 2007 08:26:33 -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 22025 invoked by uid 99); 21 Mar 2007 08:26:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 01:26:33 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 01:26:23 -0700 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id l2L8PxAi026537 for ; Wed, 21 Mar 2007 09:26:00 +0100 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Wed, 21 Mar 2007 09:26:00 +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: AW: Question about loop in Ant Date: Wed, 21 Mar 2007 09:26:00 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Question about loop in Ant Thread-Index: AcdrQFAWpd0AAmVCTF6O3uBCDfT3YgAUUZtA From: To: X-OriginalArrivalTime: 21 Mar 2007 08:26:00.0776 (UTC) FILETIME=[8EC10480:01C76B92] X-Virus-Checked: Checked by ClamAV on apache.org I would write a custom task which stores the listener-adresses as = property. Inside your code you could reuse the Ant classes if you need ... (oata.taskdefs, oata.util) Jan ... class GetOracleListenerTask extends Task { String property; // setter public execute() { List urls =3D getPossibleListenerUrls(); for(URL url : urls) { if (isReachable(url)) { getProject.setNewProperty(property, url); return; } } } // return a list of possible oracle listeners // maybe from a file private List getPossibleListenerUrls() {} =20 // checks if that given url is ok private boolean isReachable(URL url) {} } =20 =20 >-----Urspr=FCngliche Nachricht----- >Von: cknell@onebox.com [mailto:cknell@onebox.com]=20 >Gesendet: Dienstag, 20. M=E4rz 2007 23:37 >An: user@ant.apache.org >Betreff: RE: Question about loop in Ant > >http://www.cenqua.com/fisheye/demo/browse/~raw,r=3D1.4/ant/docs/m >anual/CoreTasks/sequential.html >--=20 >Charles Knell >cknell@onebox.com - email > > > >-----Original Message----- >From: Farid Izem >Sent: Tue, 20 Mar 2007 22:32:12 +0100 >To: user@ant.apache.org >Subject: Question about loop in Ant > >Hi All, > >I have write a ant script which check the availibility of=20 >Oracle listener >based on tcp reachibility (waitfor task) and jdbc connection=20 >(sql task). > >I'd like to make somehing like that : > > > > > > > >Is there something i can do easily or do i need to write my=20 >own ant task ? > >Kind Regards, > > > >--------------------------------------------------------------------- >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