Use <for>s begin and end attributes: <for begin="1" end="60"> <sequential> ...
Jan > -----Ursprüngliche Nachricht----- > Von: Diana Huang (AU) [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 22. Juli 2008 07:05 > An: user@ant.apache.org > Betreff: For loop > > Hi, > > I am using the below codes to get for loop working > > <project default="test" basedir="."> > > <taskdef name="for" > classname="net.sf.antcontrib.logic.ForTask" > classpath="lib/ant-contrib-1.0b3.jar" /> > > > <target name="test"> > > <echo message="The first five letters of the > alphabet are:"/> > <for list="a,b" param="test"> > <sequential> > <echo>Letter @{test}</echo> > </sequential> > </for> > </target> > </project> > > However, if I want to iterate 60 times, how can I do it? (I > don't want to put 60 characters in the list) > > Thanks, > > Diana Huang > > > Diana Huang > > CIS-DIDATA > P: 0396264247 > M: 0417468079 > E: [EMAIL PROTECTED] > > > > > ************************************************************** > **************** > - NOTICE FROM DIMENSION DATA AUSTRALIA > This message is confidential, and may contain proprietary or > legally privileged information. If you have received this > email in error, please notify the sender and delete it immediately. > > Internet communications are not secure. You should scan this > message and any attachments for viruses. Under no > circumstances do we accept liability for any loss or damage > which may result from your receipt of this message or any attachments. > ************************************************************** > **************** > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]