velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Kuhn" <bnk...@hotmail.com>
Subject can't find AnakiaTask in velocity-dep-1.3.1.jar
Date Sun, 17 Aug 2003 06:43:22 GMT

Hello,

For some reason I can't get my AnakiaTask to work.  Can anyone spot my 
problem?  I'm almost certain that velocity-dep-1.3.1.jar is in my classpath, 
and it contains org.apache.velocity.anakia.AnakiaTask, yet ant says it can't 
find the class for it.  I've tried every variation I can think up of the 
setup below.

TIA,
   Brian



This is a listing of the project dir, (/home/brian/Anakia/):
------------------------------------------------------------------------------------
[brian@localhost Anakia]$ ls -l
total 516
-rw-rw-r--    1 brian    brian         920 Aug 16 21:15 bean.vm
-rw-rw-r--    1 brian    brian         631 Aug 16 23:15 build.xml
-rw-rw-r--    1 brian    brian         331 Aug 16 20:56 example.xml
-rw-r--r--    1 brian    brian      511491 Aug 16 23:21 
velocity-dep-1.3.1.jar
------------------------------------------------------------------------------------



This is a listing of all the anakia classes in velocity-dep-1.3.1.jar
------------------------------------------------------------------------------------
[brian@localhost Anakia]$ jar -tf velocity-dep-1.3.1.jar | grep anakia
org/apache/velocity/anakia/
org/apache/velocity/anakia/XPathCache.class
org/apache/velocity/anakia/Escape.class
org/apache/velocity/anakia/AnakiaElement.class
org/apache/velocity/anakia/NodeList$AttributeXMLOutputter.class
org/apache/velocity/anakia/NodeList$1.class
org/apache/velocity/anakia/NodeList.class
org/apache/velocity/anakia/XPathTool.class
org/apache/velocity/anakia/AnakiaTask.class                <-- NOTICE THIS 
LINE
org/apache/velocity/anakia/OutputWrapper.class
org/apache/velocity/anakia/AnakiaJDOMFactory.class
org/apache/velocity/anakia/TreeWalker.class
------------------------------------------------------------------------------------



This is my ant build file:
------------------------------------------------------------------------------------
[brian@localhost Anakia]$ cat build.xml

<project name="BeanBuilder" default="bean" basedir=".">

    <property name="source" value="./example.xml"/>
    <property name="template" value="./bean.vm"/>

    <target name="bean">
      <taskdef name="anakia"
               classname="org.apache.velocity.anakia.AnakiaTask"/>

      <anakia basedir="."
              destdir="."
              extension=".java"
              style="${template}"
              includes="${source}"
              lastModifiedCheck="false"
              velocityPropertiesFile="velocity.properties">
      </anakia>
    </target>
</project>
------------------------------------------------------------------------------------



This is my classpath:
------------------------------------------------------------------------------------
[brian@localhost Anakia]$ set | grep CLASSPATH
CLASSPATH=/home/brian/Anakia/velocity-dep-1.3.1.jar
------------------------------------------------------------------------------------



This is what happens when I run the build file:
------------------------------------------------------------------------------------
[brian@localhost Anakia]$ ant
Buildfile: build.xml

bean:

BUILD FAILED
file:/home/brian/Anakia/build.xml:10: taskdef class 
org.apache.velocity.anakia.AnakiaTask cannot be found

Total time: 3 seconds
------------------------------------------------------------------------------------

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


Mime
View raw message