-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HibernateDoclet- HBM files not generated
PostPosted: Fri Apr 01, 2005 6:14 am 
Newbie

Joined: Fri Apr 01, 2005 5:21 am
Posts: 11
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,


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 10:47 am 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
Hi,

This is really an Xdoclet question, and you probably need to ask on the Xdoclet mailing list(s). Maybe your doclet annotations are bad. Are you using Xdoclet(1) or Xdoclet2? They each have their own mailing list... check the project home pages.

GL,
—ml—


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.