I have setup a simple ant task to create the hibernate mappings using xdoclet. after days of looking around, i have gotten the results posted below, but in the end it produces no output. Anyone know what I have messed up or how I can move forward to finding out what I;ve done ?
Thanks,
My build.xml is in ROOT, and I am trying to create hbm files for the .java in WEB-INF classes.
using hibernate 2.1, xdoclet 1-2.2, my hibernate class is defined like
Code:
/*
* @hibernate.class table="products"
*/
public class Product {
/**
* @hibernate.id column="productid" generator-class="native"
*/
public int getProduct_id() {
etc
my build.xml looks like
Code:
<taskdef name="hibernatedoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask">
<classpath>
<fileset dir="${xdoclet.lib.home}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<!-- Execute the hibernatedoclet task -->
<hibernatedoclet
destdir="${dist}"
excludedtags="@version,@author,@todo"
force="true"
verbose="true"
mergedir="${dist}">
<fileset dir="" >
<include name="**/*.java" />
</fileset>
<hibernate version="2.0" />
</hibernatedoclet>
and my results are:
Code:
prepare:
[echo] Creating required directories...
[mkdir] Created dir: C:\development\jshop-dist
hibernate:
[hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/
>
BUILD SUCCESSFUL
Total time: 2 seconds
but no files are ever generated -- and it doesnt mention the product.java file that i have defined.. any thoughts?