[Junitdoclet-users] Problems running JUnitDoclet as Ant task
Brought to you by:
sgemkow
|
From: Matt R. <ma...@ra...> - 2002-12-09 23:35:48
|
I'm trying to run JUnitDoclet as an Ant task and it can't seem to find
it in my classpath. I've tried referencing it in my classpath, as well
as placing it in $ANT_HOME/lib, but no luck. Any ideas? Here's my
task:
<target name="junitdoclet" depends="compile-web">
<javadoc
packagenames = "org.*"
sourcepath = "src/web"
defaultexcludes = "yes"
doclet = "com.objectfab.tools.junitdoclet.JUnitDoclet"
additionalparam = "-d test/web -buildall -source='1.4'">
<classpath refid = "web.test.classpath" />
</javadoc>
</target>
When it runs, it says:
junitdoclet:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] javadoc: Cannot find doclet class
com.objectfab.tools.junitdoclet.JUnitDoclet
[javadoc] 1 error
So I added this to my task, and it always comes up:
<available property="junitdoclet.jar.present"
classname="com.objectfab.tools.junitdoclet.JUnitDoclet"/>
<fail unless="junitdoclet.jar.present">
You must place JUnitDoclet.jar in ${env.ANT_HOME}/lib.
This file is located at ${junitdoclet.jar}.
</fail>
Thanks,
Matt
P.S. I'm using 1.0.2 on Windows XP, JDK 1.4.1, Ant 1.5.1 and Cygwin.
|