thanks for your answer david. Finally, after a hard fight with xdoclet2, doclipse, myeclipse, hibernate, hibernate-anotations, etc I get it aparently working. I say aparently because the build.xml file works fine, but it doesn't generate a single .hbm
here is the build.xml
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<project name="XDOCLET XML" default="hibernatedoclet" basedir=".">
<property name="src.home" value="${basedir}/../src" />
<property name="lib.home" value="${basedir}/lib" />
<property name="generated.home" value="${basedir}/src/xdoclet" />
<property name="generate.force" value="true" />
<path id="class.path">
<!-- xdoclet2 -->
<pathelement location="${lib.home}/xdoclet/xdoclet-2.0.4.jar" />
<!-- Add the xdoclet2 plugins jar here -->
<pathelement location="${lib.home}/xdoclet/xdoclet-plugin-hibernate-1.0.3.jar" />
<!-- xdoclet2 runtime dependencies -->
<pathelement location="${lib.home}/xdoclet/generama-1.2.1.jar" />
<pathelement location="${lib.home}/xdoclet/picocontainer-1.0.jar" />
<pathelement location="${lib.home}/xdoclet/nanocontainer-1.0-beta-3.jar" />
<pathelement location="${lib.home}/xdoclet/nanocontainer-ant-1.0-beta-3.jar" />
<pathelement location="${lib.home}/xdoclet/qdox-20051211.114207.jar" />
<pathelement location="${lib.home}/xdoclet/velocity-1.4.jar" />
<pathelement location="${lib.home}/xdoclet/commons-logging-1.0.4.jar" />
<pathelement location="${lib.home}/xdoclet/commons-collections-3.1.jar" />
<pathelement location="${lib.home}/xdoclet/commons-jelly-20050813.225330.jar" />
<pathelement location="${lib.home}/xdoclet/commons-jelly-tags-define-1.0.jar" />
<pathelement location="${lib.home}/xdoclet/commons-jelly-tags-jsl-1.0.jar" />
<pathelement location="${lib.home}/cxdoclet/commons-jelly-tags-xml-20050823.222913.jar" />
<pathelement location="${lib.home}/xdoclet/commons-logging-1.0.4.jar" />
<pathelement location="${lib.home}/xdoclet/dom4j-1.6.jar" />
<pathelement location="${lib.home}/xdoclet/commons-beanutils-1.7.0.jar" />
<pathelement location="${lib.home}/xdoclet/commons-jexl-1.0.jar" />
</path>
<target name="hibernatedoclet" depends="" description="Generate Persistence and form classes">
<taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask" classpathref="class.path" />
<xdoclet>
<!-- defines the file handled by xdoclet2 -->
<fileset dir="${src.home}">
<include name="**/*.java" />
</fileset>
<!-- defines the processing of a plugin -->
<component classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" destdir="${generated.home}" version="3.0" />
</xdoclet>
</target>
</project>
Is anything missing? the output after ant's execution is:
Quote:
Buildfile: /home/neuquino/workspace/Editor/tools/build.xml
hibernatedoclet:
[xdoclet] Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
BUILD SUCCESSFUL
Total time: 1 second
Thanks again.
Greetings,
Neuquino