Title: Cannot find doclet class xdoclet.DocletTask$DocletMain
I don't think this is the problem. ${tools.dir} is a relative path within a known project structure. I tarred up this entire structure from cygwin, moved it to a linux box, and untarred it. Works on linux, not on cygwin. There are other targets/tasks within this buildfile that use jars that hang off ${tools.dir} which have no problem working on any platform (tested on win/dos, cygwin, Sun, Linux). Besides, if tools.dir was pointing to the wrong path, how did xdoclet.web.WebDocletTask get found in the first place?
 
Mike
-----Original Message-----
From: Ara Abrahamian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 11:19 AM
To: 'Finn, Michael'; [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] Cannot find doclet class xdoclet.DocletTask$DocletMain

If it works on Linux and not on windows it means ${tools.dir} is wrong on windows, points to the wrong folder.

 

Ara.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Finn, Michael
Sent: Thursday, June 27, 2002 6:47 PM
To: '[EMAIL PROTECTED]'
Subject: [Xdoclet-user] Cannot find doclet class xdoclet.DocletTask$DocletMain

 

Strange error. Maybe someone else has seen it??

Running on cygwin (Win2K, Sun 1.3.1.03 JVM); using basic webdoclet stuff from ant. xdoclet v1.1.2.

I have taskdef defined like so:
  <taskdef name="webdoclet"
           classname="xdoclet.web.WebDocletTask"
           classpath="${tools.dir}/xdoclet/lib/xdoclet.jar"/>

and a target defined like so:
  <target name="webdoclet.main" depends="prepare">
    <webdoclet
        destdir="${gen.src.dir}"
        classpathref="build.classpath"
        excludedtags="@version,@author"
        sourcepath="${src.dir}/main"
        packagenames="blah.blah.*">
      <strutsconfigxml
        destdir="${gen.src.dir}/WEB-INF"
        mergedir="${src.webapp}/mergefiles"/>
    </webdoclet>
  </target>

When I run the target, I get the following output:

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

BUILD FAILED

c:\cap_opm\src\build\build.xml:172: Javadoc returned 1
<<

Wierd that it finds the task class itself (DocletTask), but can't find the innerclass DocletMain. It shows up in the jar file. (Possibly) even wierder is the fact that this exact project works on Linux (whole project copied straight to Linux box - works without any modification). I don't know if this an effect of the OS or the different JVM.

Anyone else seen this? It's giving me fits.

TIA,
Mike

Reply via email to