ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <jtama...@xa.lg.ehu.es>
Subject taskdef class not found
Date Wed, 09 Jul 2003 17:57:31 GMT
Hello

I am new using ant and when trying to build I get the following error:
(win 2000, j2sdk version 1.4.1_01, ant version 1.5.3_1

message error:
build.xml:4: taskdef class 
net.sourceforge.chaperon.adapter.ant.ParserTask cannot be found

ant -verbose -debug (here is the debug information)
-----------------------------------------------------------------
..
Project base dir set to: C:\forteProjects\chaperon-ant
   +Task: taskdef
Class net.sourceforge.chaperon.adapter.ant.ParserTask loaded from 
parent loader

BUILD FAILED
file:C:/forteProjects/chaperon-ant/build.xml:4: taskdef class 
net.sourceforge.chaperon.adapter.ant.ParserTask cannot be found
	at org.apache.tools.ant.taskdefs.Definer.addDefinition
(Definer.java:240)
..
--------------------------------------------------------------------


this is the build xml i am trying to compile:
----------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="intchaperon">
<taskdef classname="net.sourceforge.chaperon.adapter.ant.ParserTask"  
name="chaperon"/>

<chaperon destdir="data/out/" grammar="data/grammars/ex1.xgrm" 
lexicon="data/grammars/ex1.xlex" srcdir="data/in/">
 <include name="*.txt"/>
 <mapper from="*.txt" to="*.xml" type="glob"/>
</chaperon>
</project>
----------------------------------------------------------------

the class ParseTask is in a jar : chaperon-2.1-final.jar

this jar is included in the classpath

set classpath:
CLASSPATH=c:\j2sdk1.4.1_01\bin\work\lib;c:\j2sdk1.4.1_01
\work;c:\j2sdk1.4.1_01\bin\work\lib\xml-apis.jar;c:\j2sdk1.4.1_01
\bin\work\lib\xerces.jar;c:\j2sdk1.4.1_01
\jre\lib\rt.jar;c:\forteProjects\chaperon-2.1-final.jar;c:\apache-ant-
1.5.3-1\lib\ant.jar;c:\apache-ant-1.5.3-1\lib\optional.jar;c:\apache-
ant-1.5.3-1\lib\xercesImpl.jar;c:\apache-ant-1.5.3-1\lib\xml-apis.jar


Thanks in advance.

Rub.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message