Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 69004 invoked from network); 27 Nov 2006 11:27:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 11:27:21 -0000 Received: (qmail 67133 invoked by uid 500); 27 Nov 2006 11:27:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67104 invoked by uid 500); 27 Nov 2006 11:27:26 -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 67093 invoked by uid 99); 27 Nov 2006 11:27:26 -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 03:27:26 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of dharmesh.mail@gmail.com designates 66.249.82.234 as permitted sender) Received: from [66.249.82.234] (HELO wx-out-0506.google.com) (66.249.82.234) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 03:27:14 -0800 Received: by wx-out-0506.google.com with SMTP id h28so1410485wxd for ; Mon, 27 Nov 2006 03:26:53 -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:references; b=uMrQ7z8iRYByPCBysV2VnwLFHDFA+lPM5yks+ZCA9ZeB+50EyAyUagWAupkbMap62AnvIyc3f74qEtTDWyujSSJvss7m9ninoGS+ZuS/OTIrFe7BVnF3qIqEKQWKyiQFkwrQU/qf75PSwRvaOcLWxzK0HOVqZDGhSuKzhbInHck= Received: by 10.70.48.11 with SMTP id v11mr5029461wxv.1164626813476; Mon, 27 Nov 2006 03:26:53 -0800 (PST) Received: by 10.70.95.10 with HTTP; Mon, 27 Nov 2006 03:26:53 -0800 (PST) Message-ID: Date: Mon, 27 Nov 2006 16:56:53 +0530 From: "Dharmesh Vyas" To: "Ant Users List" Subject: Re: [HELP] How to use ant-contrib inside an ant plugin? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_69714_19370206.1164626813291" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_69714_19370206.1164626813291 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > > ------=_Part_69714_19370206.1164626813291--