Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 24442 invoked from network); 27 Nov 2006 13:29:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 13:29:21 -0000 Received: (qmail 60399 invoked by uid 500); 27 Nov 2006 13:29:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 60361 invoked by uid 500); 27 Nov 2006 13:29:25 -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 60350 invoked by uid 99); 27 Nov 2006 13:29:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 05:29:25 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of peter.kitt.reilly@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 05:29:13 -0800 Received: by nf-out-0910.google.com with SMTP id o63so1998124nfa for ; Mon, 27 Nov 2006 05:28:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sixPotMkJuFERi0P3SAHLcxJii8zJBJBH8RhUZQgBo7qMMhdI+Mz88VBdVknQHTkOO/vTB8gVhcLicz5rbm1OeuhupyXHSRb41yGOYyUIXKR3GOG/iBM3UdhRqYO42GABhreeAYzWP++XVuzs1HwBkrFXxWCJbq15ukdmW+g+zg= Received: by 10.82.175.2 with SMTP id x2mr1982705bue.1164634131341; Mon, 27 Nov 2006 05:28:51 -0800 (PST) Received: by 10.82.152.11 with HTTP; Mon, 27 Nov 2006 05:28:51 -0800 (PST) Message-ID: Date: Mon, 27 Nov 2006 13:28:51 +0000 From: "Peter Reilly" To: "Ant Users List" , floess@mindspring.com Subject: Re: [HELP] How to use ant-contrib inside an ant plugin? In-Reply-To: <456AE728.2060409@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456AE728.2060409@mindspring.com> X-Virus-Checked: Checked by ClamAV on apache.org On 11/27/06, Scot P. Floess wrote: > Am I missing something? Does ant-contrib's task support this kind > of "for" looping? > It has been recently added, and a new release of ant-contrib (1.0b3) picked it up. Peter > Dharmesh Vyas wrote: > > Hello, > > > > Thanks for the reply and suggestion Peter. I tried out a thing and it > > worked > > for me. Here it is. > > Set the classpath till directory net and then you need to include this > > taskdef. > > > > in your script and the script is running all fine and well.. > > > > I shall try out the solution Peter provided. > > > > Thanks and Regards, > > - Dharmesh Vyas. > > > > On 11/24/06, Peter Reilly wrote: > >> > >> Use the antlib:net.sf.antcontrib namespace > >> > >> > >> > >> i is @{i} > >> > >> > >> > >> Also, you should upgrade to ant 1.6.5 as ant1.6.5 fixes > >> a number of bugs found in ant 1.6.3. > >> > >> (or ant 1.7.0 when it comes out in a few weeks). > >> > >> Peter > >> > >> > >> On 11/24/06, Dharmesh Vyas wrote: > >> > Hello Group, > >> > > >> > I am a new member of the group. I am trying to use ant-contrib plugin > >> with > >> > ant. I have been facing an issue where in it shows that "Could not > >> create > >> > task or type of type: for." > >> > > >> > The full error that I get is: > >> > > >> > > >> ******************************************************************************************D:\Projects\Ant-trials\ant-tasks\BuildTestEnv.xml:42: > >> > >> > Could not create task or t > >> > ype of type: for. > >> > > >> > Ant could not find the task or a class this task relies upon. > >> > > >> > This is common and has a number of causes; the usual > >> > solutions are to read the manual pages then download and > >> > install needed JAR files, or fix the build file: > >> > - You have misspelt 'for'. > >> > Fix: check your spelling. > >> > - The task needs an external JAR file to execute > >> > and this is not found at the right place in the classpath. > >> > Fix: check the documentation for dependencies. > >> > Fix: declare the task. > >> > - The task is an Ant optional task and the JAR file and/or libraries > >> > implementing the functionality were not found at the time you > >> > yourself built your installation of Ant from the Ant sources. > >> > Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding > >> to the > >> > task and make sure it contains more than merely a > >> META-INF/MANIFEST.MF. > >> > > >> > If all it contains is the manifest, then rebuild Ant with the > >> needed > >> > libraries present in ${ant.home}/lib/optional/ , or > >> alternatively, > >> > download a pre-built release version from apache.org > >> > - The build file was written for a later version of Ant > >> > Fix: upgrade to at least the latest release version of Ant > >> > - The task is not an Ant core or optional task > >> > and needs to be declared using . > >> > - You are attempting to use a task defined using > >> > or but have spelt wrong or not > >> > defined it at the point of use > >> > > >> > Remember that for JAR files to be visible to Ant tasks implemented > >> > in ANT_HOME/lib, the files must be in the same directory or on the > >> > classpath > >> > > >> > Please neither file bug reports on this problem, nor email the > >> > Ant mailing lists, until all of these causes have been explored, > >> > as this is not an Ant bug. > >> > > >> ****************************************************************************************** > >> > >> > I have the ant 1.6.3 and ant-contrib 1.0b3-bin on my machine. I have > >> copied > >> > jar file of ant-contrib in to ant/lib and the initial name of jar file > >> was ' > >> > ant-contrib-1.0b3', I was not sure if this name has to be changed to > >> > ant-contrib or antcontrib. But to give it a try, I have tried out that > >> also > >> > but din't work for me. > >> > > >> > This is how I am using the "For" task in my build.xml file > >> > > >> > > >> > > >> > > >> > i is @{i} > >> > > >> > > >> > > >> > > >> > To use "for" task do i need to define any thing else also in my > >> > build.xmlfile ? Please let me know where am I going wrong. > >> > > >> > Thanks a lot in Advance, > >> > - Dharmesh Vyas > >> > > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > >> For additional commands, e-mail: user-help@ant.apache.org > >> > >> > > > > -- > 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org