I'm trying to work with xdoclet with eclipse ant support.
The first task I test is the Hibernate doclet task.
I use 2.0.1, upgraded ant to version 1.5 as described in the manual and several 
messages, added xdoclet jars to the ant classpath and configured hibernateTask in the 
preferences.

when i run ant I got the following errorBuild exception:

file:C:/Programmi/eclipse/workspace/TierGenerator/build2.xml:60: Can't create a 
hibernate element under hibernatedoclet. Make sure the jar file containing the 
corresponding subtask class is on the classpath specified in the <taskdef> that 
defined {2}.

here my build file:


<project name="MyProject" default="dist" basedir=".">
<description>
simple example build file
</description>

<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="hibernate.home" location="mapping"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${hibernate.home}"/>

<path id="classpath">
<fileset dir="d:\\xdoclet\\">
<include name="*.jar"/>
</fileset>
</path>



</target>

<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>

<target name="generate"
description="Generates Hibernate class descriptor files."
depends="compile">

<!-- Define the hibernatedoclet task -->
<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask">
<classpath>
<fileset dir="d:\\xdoclet\\">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>

<!-- Execute the hibernatedoclet task -->
<hibernatedoclet
destdir="${hibernate.home}"
excludedtags="@version,@author,@todo"
force="true"
mergedir="${hibernate.home}"
verbose="false">

<fileset dir="${src.home}">
<include name="**/hibernate/*.java"/>
</fileset>

<hibernate/>

</hibernatedoclet>

<!-- Upgrade grammar from Hibernate1 to Hibernate2 -->
<replace dir="${generated.home}">
<include name="**/hibernate/*.hbm.xml"/>
<replacefilter token="readonly=" value="inverse="/>
<replacefilter token="role=" value="name="/>
<replacefilter token="hibernate-mapping.dtd" value="hibernate-mapping-2.0.dtd"/>
</replace>

</target>
</project>

thanks for any help

S3M







-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to