Hello xdoclet users,

I just started playing around with xdoclet 1.1.2
and I'm facing problems with WebDoclet task. For some reason it
refuses to run and i'm getting such an exception:

P:\Project\Testina2>ant -v doclet-web
Apache Ant version 1.5 compiled on July 9 2002
Buildfile: build.xml
Detected Java version: 1.4 in: C:\JavaSoft\j2sdk1.4.0\jre
Detected OS: Windows 2000
parsing buildfile build.xml with URI = file:P:/Project/Testina2/build.xml
Project base dir set to: P:\Project\Testina2
Build sequence for target `doclet-web' is [init, prepare, doclet-web]
Complete build sequence is [init, prepare, doclet-web, build-web, pack-web, 
doclet-ejb, build-ejb, p
ack-ejb, pack, deploy, deploy-web, redeploy, clean, deploy-ejb, build]

init:

prepare:

doclet-web:

BUILD FAILED
file:P:/Project/Testina2/build.xml:113: No source files and no packages have been 
specified.
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1531)
        at xdoclet.DocletTask.execute(DocletTask.java:240)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 24 seconds


Strange exception "No source files and no packages have been
specified." is thrown although EjbDoclet task with almost the same
attributes runs well.

Here is a snip from my build.xml file:

<!-- Generate EJB interfaces and deployment descriptors -->
   <target name="doclet-ejb" depends="prepare">

      <taskdef name="ejbdoclet" 
               classname="xdoclet.ejb.EjbDocletTask" 
               classpathref="project.class.path" />

      <ejbdoclet sourcepath="${src.java}" 
                 destdir="${generate.java}"
                 classpathref="project.class.path"
                 excludedtags="@version,@author"
                 ejbspec="2.0">
         
         <fileset dir="${src.java}">
            <include name="${ejb.package}/**" />
         </fileset>

         <remoteinterface/>
         <homeinterface/>
         <deploymentdescriptor destdir="${generate.xml}" />
         <jboss version="3.0" destdir="${generate.xml}" />

      </ejbdoclet>

   </target>

<!-- Generate WEB deployment descriptors and classes -->
   <target name="doclet-web" depends="prepare">

      <taskdef name="webdoclet" 
               classname="xdoclet.web.WebDocletTask" 
               classpathref="project.class.path" />

      <webdoclet sourcepath="${src.java}"
                 destdir="${generate.xml}"
                 classpathref="project.class.path"
                 excludedtags="@version,@author">

         <fileset dir="${src.java}">
            <include name="${web.package}/**,${delegate.package}/**" />
         </fileset>
         
         <deploymentdescriptor/>

      </webdoclet>

   </target>


That's it, WebDoclet doesn't run, although EjbDoclet works fine.
The full build.xml file is attached.

Eagerly looking for your help!

Best regards,
--
Paulius Danielius
e-mail: [EMAIL PROTECTED]

Attachment: build.xml
Description: application/xml

Reply via email to