Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 64708 invoked by uid 500); 3 Jul 2003 05:44:04 -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 64697 invoked from network); 3 Jul 2003 05:44:03 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 3 Jul 2003 05:44:03 -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 h635iCBT031949 for ; Thu, 3 Jul 2003 07:44:12 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id ; Thu, 3 Jul 2003 07:44:12 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF6B71@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: Run a ant target many times Date: Thu, 3 Jul 2003 07:44:11 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C34126.20D97230" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C34126.20D97230 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have done that also, "for each line of a file call a target". I used AntContrib for that. ${value} The trick is use the delimiter ${line.separator}. In my case I have a properties file and want to both - key and value, so I use AntContrib=B4s = in 'doOne': Ant-Contrib: Homepage: http://sourceforge.net/projects/ant-contrib/ CVS-Source: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ant-contrib/ant-contrib/s= rc/n et/sf/antcontrib/ CVS-Manual: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ant-contrib/ant-contrib/m= anua l/index.html =09 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/an= t-co ntrib/manual/tasks/index.html Binary: http://gump.covalent.net/jars/latest/ant-contrib/ Jan > -----Urspr=FCngliche Nachricht----- > Von: Danilo Luiz Rheinheimer [mailto:danilo@floripa.com.br] > Gesendet am: Donnerstag, 3. Juli 2003 05:26 > An: user@ant.apache.org > Betreff: Run a ant target many times >=20 > Hello, >=20 > I have a simple build script to : >=20 > - download a module from CVS. > - zip it. > - upload it to FTP. >=20 > This is working fine. >=20 > But this process must be done on a list of CVS modules. And this > list is on a .txt file. > How I can read this text file and invoke the ant targets once per > module ? > I know how to write ant tasks so if I need to do it this is not a > problem. >=20 >=20 > --=20 > Best regards, > Danilo mailto:danilo@floripa.com.br >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 ------_=_NextPart_001_01C34126.20D97230--