Hi, I am trying to use XDoclet 1.2b2 with a build file which works with 1.1. Here is a 
snippet:

<target name="generateDescriptors" unless="descriptorsExist"
                description="Generate deployment descriptors using XDoclet" >
   <taskdef name="generateDescriptors"
         classname="xdoclet.modules.ejb.EjbDocletTask"
         classpath="${XDocletJar};${Log4jJar};${AntJar}" />

  <generateDescriptors sourcepath="${basedir}/src"
                destdir="${basedir}"
                classpath="${classpath};${XDocletJar};${Log4jJar};${AntJar}"
                excludedtags="@version,@author"
                ejbspec="2.0"
                force="true">

                <fileset dir="${basedir}/src">
                        <include name="**/*" />
                </fileset>

The only change from xdoclet 1.1 is the change to the EJBDocletTask package name.
${XDocletJar} points to a composite jar containing all the classes from 
xdoclet/lib/*.jar.

When I run ant against the above, I get the following output:

Ant started in directory C:\Source\Trunk\Dev\EJB
Current target 'generateDescriptors'
Apache Ant version 1.5.2 compiled on February 28 2003
Buildfile: C:\Source\Trunk\Dev\EJB\build.xml
Detected Java version: 1.3 in: C:\JBuilder7\jdk1.3.1\jre
Detected OS: Windows 2000
parsing buildfile C:\Source\Trunk\Dev\EJB\build.xml with URI = 
file:C:/Source/Trunk/Dev/EJB/build.xml
Project base dir set to: C:\Source\Trunk\Dev\EJB
 [property] Loading Environment env.
 [property] Loading C:\Source\trunk\Dev\build.properties
Property ${env.DEPRECATION} has not been set
 [property] Loading C:\Source\trunk\Dev\Weblogic.properties
Override ignored for property ServletJar
Build sequence for target `generateDescriptors' is [generateDescriptors]
Complete build sequence is [generateDescriptors, deploy, checkDescriptors, checkJar, 
build, checkFileLists, generateFileLists, clientjar, main, clean, main_deploy, all, 
all_deploy]
generateDescriptors:
BUILD FAILED
file:C:/Source/Trunk/Dev/EJB/build.xml:245: Can't create a generateDescriptors element 
under {2}. Make sure the jar file containing the corresponding subtask class is on the 
classpath specified in the <taskdef> that defined {2}.
 at xdoclet.DocletTask.createDynamicElement(DocletTask.java:339)
 at 
org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:510)
 at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:239)
 at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:122)
 at org.apache.tools.ant.Task.perform(Task.java:340)
 at org.apache.tools.ant.Target.execute(Target.java:309)
 at org.apache.tools.ant.Target.performTasks(Target.java:336)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
 at org.apache.tools.ant.Main.runBuild(Main.java:609)
 at org.apache.tools.ant.Main.start(Main.java:196)
 at org.apache.tools.ant.Main.main(Main.java:235)
AntRunner completed run

Does anyone know what I'm doing wrong here?
  TIA
    Brian




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to