Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39470 invoked from network); 24 Mar 2010 06:20:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 06:20:09 -0000 Received: (qmail 35843 invoked by uid 500); 24 Mar 2010 06:20:08 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35647 invoked by uid 500); 24 Mar 2010 06:20:08 -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 35639 invoked by uid 99); 24 Mar 2010 06:20:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 06:20:07 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ritu@cis.uab.edu designates 138.26.64.5 as permitted sender) Received: from [138.26.64.5] (HELO crier.cis.uab.edu) (138.26.64.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 06:19:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by crier.cis.uab.edu (Postfix) with ESMTP id 6161083E2E0 for ; Wed, 24 Mar 2010 01:19:38 -0500 (CDT) Received: from crier.cis.uab.edu ([127.0.0.1]) by localhost (crier.cis.uab.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17896-09; Wed, 24 Mar 2010 01:19:30 -0500 (CDT) Received: from zimbra.cis.uab.edu (zimbra.cis.uab.edu [138.26.64.250]) by crier.cis.uab.edu (Postfix) with ESMTP id 8856383E1C4; Wed, 24 Mar 2010 01:19:30 -0500 (CDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.cis.uab.edu (Postfix) with ESMTP id 7AF325948092; Wed, 24 Mar 2010 01:19:30 -0500 (CDT) X-Virus-Scanned: amavisd-new at zimbra.cis.uab.edu Received: from zimbra.cis.uab.edu ([127.0.0.1]) by localhost (zimbra.cis.uab.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HJ6KxADcRcRI; Wed, 24 Mar 2010 01:19:23 -0500 (CDT) Received: from zimbra.cis.uab.edu (zimbra.cis.uab.edu [138.26.64.250]) by zimbra.cis.uab.edu (Postfix) with ESMTP id D27F35948090; Wed, 24 Mar 2010 01:19:23 -0500 (CDT) Date: Wed, 24 Mar 2010 01:19:23 -0500 (CDT) From: Ritu Ritu To: Ant Users List Cc: Ferosh Jacob Message-ID: <129219428.34412.1269411563841.JavaMail.root@zimbra.cis.uab.edu> In-Reply-To: <417844649.34410.1269411193021.JavaMail.root@zimbra.cis.uab.edu> Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [70.125.101.112] X-Mailer: Zimbra 6.0.4_GA_2038.RHEL5_64 (ZimbraWebClient - IE7 (Win)/6.0.4_GA_2038.RHEL5_64) X-Virus-Scanned: amavisd-new at cis.uab.edu X-Virus-Checked: Checked by ClamAV on apache.org Thanks to everyone who extended help on this issue! May be ant-contrib-1.0b2-src has bugs in it. I downloaded ant-contrib-0.6.src and on using this version all the issues went away (thanks Ferosh!). Best, Ritu ----- Original Message ----- From: "Ritu Ritu" To: "Ant Users List" Sent: Tuesday, March 23, 2010 4:00:53 PM Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" Thanks a lot Srikanth! No luck even after specifying the taskdef in this manner as well...sighs! Regards, Ritu ----- Original Message ----- From: "Srikanth Chakravarthy" To: "Ant Users List" Sent: Tuesday, March 23, 2010 4:14:11 AM Subject: RE: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" Hi Ritu, This is how I have defined the taskdef for "for". The ant-contrib.jar is in the ANT_HOME\lib folder. I run it through my IDE and this is all the settings required for it. This is on Windows. You might have to replace the same with "ExecTask" as in Regards, Srikanth -----Original Message----- From: Ritu Ritu [mailto:ritu@cis.uab.edu] Sent: Tuesday, March 23, 2010 2:33 PM To: Ant Users List Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" Hi Christoph, Thanks a lot for the reply! Yes, I have tried specifying the complete path as well. I copied and pasted the that you mailed but that too didn't work for me. I get the same error message as before. Any more pointers on this one? Thanks again, Ritu *******code************************************************************* **************************************************** *******error************************************************************ **************************************************** BUILD FAILED C:\AMMA\Eclipse3.3\FORANT\forant.xml:31: The following error occurred while executing this line: jar:file:C:/apache-ant-1.8.0/lib/ant-contrib.jar!/net/sf/antcontrib/antl ib.xml:3: taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask using the classloader AntClassLoader[C:\apache-ant-1.8.0\lib\ant-contrib.jar] ----- Original Message ----- From: "christoph grothaus" To: "Ant Users List" Sent: Tuesday, March 23, 2010 2:09:35 AM Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" > P.S. I have already tried the following: > > 1) copying ant-contrib.jar in the \apache-ant-1.8.0\lib folder > > 2) removing the namespace xmlns:ac="antlib:net.sf.antcontrib" and > specifying "for" instead of "ac:for" > > 3) specifying the complete path for "resource" in the "typedef" tag. > > Hello Ritu, have you already tried to explicitly define the classpath where the ant-contrib.jar can be found? And could you try to give the path to "net/sf/antcontrib/antlib.xml" without the leading slash? For me, the following works fine: Regards Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. --------------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org