Ah!

Thanks for explaining that.

On Wednesday, October 23, 2002, at 01:41  pm, Aslak Hellesoy wrote:


-----Original Message-----
From: Edward Kenworthy [mailto:edward@;kenworthy.info]
Sent: 23. oktober 2002 09:10
To: Aslak Hellesoy
Cc: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] [ejbdoclet] javadoc: Cannot find doclet
class xdoclet.DocletTask$DocletMain


OK that seems to be the problem - thankyou (also have to add log4j it
seems). Which leads me to ask why the duplication ? Why do I need to
define the classpath for xdoclet both in the taskdef and the ejbdoclet
task ?

Because XDoclet 1.1.2 spawns javadoc.exe in a new process, and this process
needs to access the same classes. In 1.2beta1 you only have to specify
classpath in the taskdef, as we're now using our own xjavadoc engine which
runs in the same vm. simpler, faster, better.

On Tuesday, October 22, 2002, at 11:14  pm, Aslak Hellesoy wrote:

The classpathref in <ejbdoclet> must point to a path that also contains
xdoclet.jar.

-But I highly recommend you switch to XDoclet 1.2beta1.

Aslak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:xdoclet-user-admin@;lists.sourceforge.net]On Behalf Of Edward
Kenworthy
Sent: 22. oktober 2002 23:02
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] [ejbdoclet] javadoc: Cannot find doclet class
xdoclet.DocletTask$DocletMain


I'm in the process of converting my EJB project to use xdoclet to
generate the remote & home interfaces and the deployment descriptor
and
now I've hit a brick wall. I get this error when running my build.xml
file and I have no idea why.

Buildfile: build.xml

ejbdoclet:
[ejbdoclet] Generating Javadoc
[ejbdoclet] Javadoc execution
[ejbdoclet] javadoc: Cannot find doclet class
xdoclet.DocletTask$DocletMain
[ejbdoclet] 1 error

BUILD FAILED

The jdk is on the classpath (automatic with OSX), the jdk's bin
directory is on the path (automatic with OSX) and I can invoke javadoc
from the command line, and I'm using a current version of Ant - ie my
software environment is as per the xdoclet instructions.

This is what the relevant bit of my build.xml file looks like:

<property name="xdoclet.jar.path"
value="/usr/local/xdoclet/xdoclet-1.1.2/lib/xdoclet.jar"/>
<property name="log4j.jar.path"
value="${dist.root}/client/log4j.jar"/>
<property name="ant.jar.path"
value="/usr/local/ant/jakarta-ant-1.4.1/lib/ant.jar"/>
<property name="generated.java.dir" value="${basedir}/generated"/>

<target name="ejbdoclet">

<taskdef name="ejbdoclet"
classname="xdoclet.ejb.EjbDocletTask"
classpath="${xdoclet.jar.path};${log4j.jar.path};${ant.jar.path}" />

<ejbdoclet
sourcepath="${src.dir}"
destdir="${generated.java.dir}"
classpathref="build.path"
excludedtags="@version,@author"
ejbspec="2.0"
force="${xdoclet.force}">
[snip]

Help ?

Edward



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com
/javavote
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to