Hi,
I am trying to run the HibernateDoclet task.
<target name="generate-hbm-from-xdoclet"
description="Generates Hibernate class descriptor files."
>
<echo>Starting generate-hbm-from-xdoclet</echo>
<!-- Define the hibernatedoclet task -->
<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpathref="lib.class.path">
</taskdef>
<!-- Execute the hibernatedoclet task -->
<hibernatedoclet
destdir="${build.dir}"
force="true"
verbose="true">
<fileset dir="${build.gen-src.dir}">
<include name="**/*.java"/>
</fileset>
<hibernate version="2.0" />
</hibernatedoclet>
<echo message="hibernate.dir = ${build.dir}" />
<echo message="src = ${build.gen-src.dir}" />
</target>
This is the output:
Buildfile: C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3\build.xml
Overriding previous definition of reference to lib.class.path
Overriding previous definition of reference to lib.class.path
init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[echo] Class path = C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3
[middlegen] (middlegen.Middlegen 352 ) Registering plugin simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin plugin->middlegen.Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin hibernate->middlegen.plugins.hibernate.HibernatePlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin adapter->middlegen.plugins.adapter.AdapterPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin bmp20->middlegen.plugins.entitybean.BMP20Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin cmp20->middlegen.plugins.entitybean.CMP20Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin hibernate->middlegen.plugins.hibernate.HibernatePlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin html->middlegen.plugins.html.HTMLReportPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin sunjdo10->middlegen.plugins.jdo.sun.SunJDO10Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin servlet->middlegen.plugins.servlet.ServletPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin struts->middlegen.plugins.struts.StrutsPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin jsp->middlegen.plugins.struts.JspPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin torque->middlegen.plugins.torque.TorquePlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin xmi->middlegen.plugins.xmi.XmiPlugin
[middlegen] Database URL:jdbc:hsqldb:C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3/build/hsqldb/airline
[middlegen] No <table> elements specified. Reading all tables. This might take a while...
[middlegen] (middlegen.Middlegen 396 ) Validating hibernate
[middlegen] ********************************************************
[middlegen] * CTRL-Click relations to modify their cardinality *
[middlegen] * SHIFT-Click relations to modify their directionality *
[middlegen] ********************************************************
[middlegen] Updated preferences in C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3\src\airline-prefs.properties
compile-hibernate:
[javac] Compiling 1 source file to C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3\build\classes
generate-hbm-from-xdoclet:
[echo] Starting generate-hbm-from-xdoclet
[hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/>
[echo] hibernate.dir = C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3/build
[echo] src = C:\VIOC\PROJECT\mid\Middlegen-Hibernate-r3/build/gen-src
BUILD SUCCESSFUL
Total time: 2 minutes 27 seconds
No HBM is generated.
Can someone please guide me?
I know I'm checking the correct path, because if we introduce some errors in the Java file, it complains and gives a parsing error.
Can someone pleaseeee help??
I'm stuck!!!
Regards,
|