ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Messinger" <>
Subject Taskdef not finding class
Date Wed, 30 Jul 2003 18:18:36 GMT
I am trying to use the CactifyWarTask from the cactus-ant.jar as
distributed with Cactus.  In my ant build file, I set up the taskdef as
            <taskdef name="cactifywar" 
classname="org.apache.cactus.integration.ant.CactifyWarTask" />
I have placed the cactus.jar in the lib folder of ant and pointed to it
in the classpath attribute of the taskdef.  I have also done both.  Both
cause a taskdef not found error when I run ANT from the command line.
   +Task: taskdef
Class org.apache.cactus.integration.ant.CactifyWarTask loaded from
parent loader
file:W:/testbuild.xml:16: taskdef class
org.apache.cactus.integration.ant.CactifyWarTask cannot be found.
My ANT_HOME is set up properly.  Also, when using the IDEA IDE with ANT
plugin, I get the error that the cactifywar task is not allowed where I
have it in the code:
     <target name="test.prepare" depends="package">
        <cactifywar srcfile="${war.dir}\${}.war"
            <classes dir="${test.classes.dir}" />
At times, I get cactifywar as being valid, but the parameters are listed
as invalid in IDEA.  What I do for this to happen I have not followed.
I had a similar problem when using the DeployTask of catalina-ant.jar.
Any ideas on what I need to do to get the taskdef to recognize the
Craig Messinger
Plexus Scientific

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message