Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 622 invoked by uid 500); 10 Jul 2003 12:05:05 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 582 invoked from network); 10 Jul 2003 12:05:04 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 10 Jul 2003 12:05:04 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.9/8.12.9) with ESMTP id h6AC51BT026564 for ; Thu, 10 Jul 2003 14:05:01 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id ; Thu, 10 Jul 2003 14:05:03 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF6BF0@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: Check for server availability Date: Thu, 10 Jul 2003 14:05:02 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C346DB.7DE7EF00" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C346DB.7DE7EF00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable There is another possibility. I posted a little example on jGuru=B4s Ant-FAQ http://www.jguru.com/faq/view.jsp?EID=3D1099123 with use of mutliple entries. Your properties would be something like services=3Dservice-1,service-2,... service-1.name=3D service-1.host=3D service-1.port=3D service-2.name=3D ... Jan > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: Thursday, July 10, 2003 1:59 PM > To: user@ant.apache.org > Subject: RE: Check for server availability >=20 >=20 > > I guess I could use foreach to iterate through each line of=20 > > the file, but > > then I don't see how to split each line into 3 properties:=20 > > service.name, > > service.host, service.port. > > I saw a propertyregex task in ant-contrib, but it is not=20 > > available in the > > distribution yes (only in cvs). >=20 > You can get the latest binaries from > http://gump.covalent.net/jars/latest/ant-contrib/ >=20 >=20 > > Do you see anyways I could do this. I would actually prefer to = avoid > > ant-contrib (one less file to share), but if there is no choice... >=20 > Why not share that? > But you can use