Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 2021 invoked from network); 5 Feb 2009 23:59:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2009 23:59:49 -0000 Received: (qmail 41893 invoked by uid 500); 5 Feb 2009 23:59:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41853 invoked by uid 500); 5 Feb 2009 23:59:42 -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 41842 invoked by uid 99); 5 Feb 2009 23:59:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2009 15:59:41 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stevecliu@gmail.com designates 209.85.217.10 as permitted sender) Received: from [209.85.217.10] (HELO mail-gx0-f10.google.com) (209.85.217.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2009 23:59:35 +0000 Received: by gxk3 with SMTP id 3so619918gxk.4 for ; Thu, 05 Feb 2009 15:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=E1fx6pMbX+GoQKfm6UfZdyZNfLtsKY+DOIt4cJviKSA=; b=bcJA+Mn+2aazME8a+EhGlKPZWuiE6W1DXomy6qJBt8esdTmoPC3IKXjB7KYVERGCph xGTuRKIMnTtKWYC7r3pH9yTYKFalKWHSZy6gRbeUoEDlkAEEH3aJGioPWOIYkKuZavGX rW9I97X3881Ey51bgOXVBI+TJDAGNFDD5MwUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IM171OT7nDxm1FGeZQLQBujGCP+TkixDM+dvDdCL0oCBzhLXFnL5k7LOSX6R+P3kxV UuFIduqWepcdZ93zIulWv9cAQVGj71HRo3XvJC2TDQs2xSnjQXNozGDrHggcKfUBT4bm RrVpJI4zbjOgTzlRvOwB/8LdMpSbHAeEXrlGA= MIME-Version: 1.0 Received: by 10.150.150.19 with SMTP id x19mr1025844ybd.108.1233878354437; Thu, 05 Feb 2009 15:59:14 -0800 (PST) In-Reply-To: References: <9b1b11990902051406n3bec0f1fk169b094dcb4db5d1@mail.gmail.com> Date: Thu, 5 Feb 2009 18:59:14 -0500 Message-ID: <9b1b11990902051559x682a0031x5bcbedcd143abdbe@mail.gmail.com> Subject: Re: Trouble with simple for loops From: Steve Liu To: Ant Users List Content-Type: multipart/alternative; boundary=000e0cd486c40326af046234b1c7 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd486c40326af046234b1c7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks, that seems to work (missing a tho). I assume that I would do the same for ? I have a dumb question, according to this page: http://ant-contrib.sourceforge.net/tasks/tasks/for.html is valid for ant 1.6 or higher... so the doc is wrong? Thanks, Steve On 2/5/09, Peter Reilly wrote: > > you have to use the antlib.xml form of taskdef and not the > antcontrib.properties > form. The antcontrib.properties is for ant 1.5 and lower, the > antlib.xml form is for > ant 1.6 and higher. > > Use the following: > > > classpath="PATH_TO_ANTCONTRIB"/> > > > > @{iter} > > > > Peter > > > > > On Thu, Feb 5, 2009 at 10:06 PM, Steve Liu wrote: > > Hi, > > > > I'm trying to get the following to work > > > > > > > > > > > > > > > > > > Letter @{letter} > > > > > > > > > > > > However, when I run it. I get: > > > > > > I've searched the list, but I'm not trying anything fancy like junit... > so I > > can't think of any jars I could need. But here is my classpath, in case > it's > > useful... > > .;C:\Program Files\Java\jre1.5.0_11\lib\ext\QTJava.zip > > Apache Ant version 1.7.1 compiled on June 27 2008 > > Buildfile: build.xml > > Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_11\jre > > Detected OS: Windows XP > > parsing buildfile C:\test\build.xml with URI = file:/C:/test/build.xml > > Project base dir set to: C:\test > > [antlib:org.apache.tools.ant] Could not load definitions from resource > > org/apache/tools/ant/antlib.xml. It could not be found. > > [taskdef] Could not load definitions from resource > > net/sf/antcontrib/antcontrib.properties. It could not be found. > > Build sequence for target(s) `build.all.modules' is [init, > > build.all.modules] > > Complete build sequence is [init, build.all.modules, ] > > > > init: > > > > build.all.modules: > > > > BUILD FAILED > > C:\test\build.xml:8: Problem: failed to create task or type for > > Cause: The name is undefined. > > Action: Check the spelling. > > Action: Check that any custom tasks/types have been declared. > > Action: Check that any / declarations have taken > place. > > > > at > > > org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:484) > > at > > org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:416) > > at > > > org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160) > > at org.apache.tools.ant.Task.perform(Task.java:347) > > at org.apache.tools.ant.Target.execute(Target.java:357) > > at org.apache.tools.ant.Target.performTasks(Target.java:385) > > at > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) > > at org.apache.tools.ant.Project.executeTarget(Project.java:1306) > > at > > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1189) > > at org.apache.tools.ant.Main.runBuild(Main.java:758) > > at org.apache.tools.ant.Main.startAnt(Main.java:217) > > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) > > > > Total time: 0 seconds > > > > Can someone help? > > > > Thanks, > > Steve > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --000e0cd486c40326af046234b1c7--