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" <r...@cis.uab.edu>
To: "Ant Users List" <user@ant.apache.org>
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" <srikanth.chakravar...@misys.com>
To: "Ant Users List" <user@ant.apache.org>
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".

        <taskdef name="for" taskname="for"
classname="net.sf.antcontrib.logic.ForTask" />

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
<taskdef name="exec" taskname="exec"
classname="net.sf.antcontrib.logic.ExecTask" />


Regards,
Srikanth

-----Original Message-----
From: Ritu Ritu [mailto:r...@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 <taskdef> 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*************************************************************
****************************************************
  <taskdef uri="antlib:net.sf.contrib"
resource="net/sf/antcontrib/antlib.xml">
          <classpath>
                  <fileset dir="C:/apache-ant-1.8.0/lib"
includes="ant-contrib.jar" />
          </classpath>
  </taskdef>

*******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" <christoph.groth...@isr.de>
To: "Ant Users List" <user@ant.apache.org>
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:

<taskdef uri="antlib:net.sf.contrib" 
resource="net/sf/antcontrib/antlib.xml">
        <classpath>
                <fileset dir="lib" includes="ant-contrib-1.0b3.jar" />
        </classpath>
</taskdef>


Regards
Christoph


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to