Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 17483 invoked from network); 23 Mar 2010 07:10:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Mar 2010 07:10:10 -0000 Received: (qmail 93033 invoked by uid 500); 23 Mar 2010 07:10:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 92687 invoked by uid 500); 23 Mar 2010 07:10:09 -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 92679 invoked by uid 99); 23 Mar 2010 07:10:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 07:10:08 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.68.85.36] (HELO lb02.bcc.de) (212.68.85.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 07:09:59 +0000 Received: from mail.isr.de ([213.252.185.14]) by smtp2.bcc.de with esmtp (Exim 4.63) (envelope-from ) id 1NtyF7-0001Vz-B2 for user@ant.apache.org; Tue, 23 Mar 2010 08:09:37 +0100 Received: from isrmsmail004.isr.local ([192.168.16.33]) by mail.isr.de (Lotus Domino Release 7.0.4) with ESMTP id 2010032308093613-16543 ; Tue, 23 Mar 2010 08:09:36 +0100 In-Reply-To: <1442077019.33172.1269320325112.JavaMail.root@zimbra.cis.uab.edu> References: <1617939225.32197.1269254054815.JavaMail.root@zimbra.cis.uab.edu> <1442077019.33172.1269320325112.JavaMail.root@zimbra.cis.uab.edu> To: "Ant Users List" MIME-Version: 1.0 Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" X-KeepSent: 35C9F181:5E7B2D00-C12576EF:0026ECAC; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.1 September 28, 2009 Message-ID: From: christoph.grothaus@isr.de Date: Tue, 23 Mar 2010 08:09:35 +0100 X-MIMETrack: Serialize by Router on Muenster/ISR Software-Consulting GmbH/DE(Release 8.5.1|September 28, 2009) at 23.03.2010 08:09:35, Serialize complete at 23.03.2010 08:09:35, Itemize by SMTP Server on Domino/ISR Software-Consulting GmbH/DE(Release 7.0.4|March 23, 2009) at 03/23/2010 08:09:36 AM, Serialize by Router on Domino/ISR Software-Consulting GmbH/DE(Release 7.0.4|March 23, 2009) at 03/23/2010 08:09:37 AM, Serialize complete at 03/23/2010 08:09:37 AM X-TNEFEvaluated: 1 Content-Type: multipart/alternative; boundary="=_alternative 00275490C12576EF_=" --=_alternative 00275490C12576EF_= Content-Type: text/plain; charset="US-ASCII" > 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 --=_alternative 00275490C12576EF_=--