You can't do it with the stock Ant Contrib for loop...
I've written something that does just that...using Ant Contrib - but its not a perfect solution. You could conceivably do so scripting...
Or, there is another project: http://antxtras.sourceforge.net/AntXtras/download.html
I believe that library has exactly the for-loop construct you want - meaning min/max/step values (ie loop from 0 - 60 stepping by 1)... I've not used it but know someone posts here who has mentioned it before...
Flossy On Tue, 22 Jul 2008, Diana Huang (AU) wrote:
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. ******************************************************************************
Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]