[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-user
Subject: Re: can't find AnakiaTask in velocity-dep-1.3.1.jar
From: "Brian Kuhn" <bnkuhn () hotmail ! com>
Date: 2003-08-17 8:24:44
[Download RAW message or body]
I hadn't loaded Jdom on this machine yet. I installed the latest and
everything seems to be working now. I had to run ant -verbose to get the
entire stack trace to figure this out though.
-Brian
----Original Message Follows----
From: "Brian Kuhn" <bnkuhn@hotmail.com>
Reply-To: "Velocity Users List" <velocity-user@jakarta.apache.org>
To: velocity-user@jakarta.apache.org
Subject: can't find AnakiaTask in velocity-dep-1.3.1.jar
Date: Sun, 17 Aug 2003 06:43:22 +0000
MIME-Version: 1.0
X-Originating-IP: [66.74.95.52]
X-Originating-Email: [bnkuhn@hotmail.com]
Received: from apache.org ([208.185.179.12]) by mc4-f2.law16.hotmail.com
with Microsoft SMTPSVC(5.0.2195.5600); Sat, 16 Aug 2003 23:43:31 -0700
Received: (qmail 43545 invoked by uid 500); 17 Aug 2003 06:43:11 -0000
Received: (qmail 43534 invoked from network); 17 Aug 2003 06:43:10 -0000
Received: from law14-f13.law14.hotmail.com (HELO hotmail.com) (64.4.21.13)
by daedalus.apache.org with SMTP; 17 Aug 2003 06:43:10 -0000
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Sat, 16 Aug 2003 23:43:22 -0700
Received: from 66.74.95.52 by lw14fd.law14.hotmail.msn.com with HTTP;Sun, 17
Aug 2003 06:43:22 GMT
X-Message-Info: JGTYoYF78jEHjJx36Oi8+YDSEg8qKPPD
Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:velocity-user-unsubscribe@jakarta.apache.org>
List-Subscribe: <mailto:velocity-user-subscribe@jakarta.apache.org>
List-Help: <mailto:velocity-user-help@jakarta.apache.org>
List-Post: <mailto:velocity-user@jakarta.apache.org>
List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org>
Delivered-To: mailing list velocity-user@jakarta.apache.org
Message-ID: <Law14-F134FTA7OIkUq0002d2ba@hotmail.com>
X-OriginalArrivalTime: 17 Aug 2003 06:43:22.0991 (UTC)
FILETIME=[DA7597F0:01C3648A]
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path:
velocity-user-return-11534-bnkuhn=hotmail.com@jakarta.apache.org
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
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic