-->
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 ...> only works outside eclipse 3.1 d
PostPosted: Tue Jul 19, 2005 12:15 pm 
Newbie

Joined: Tue Jul 19, 2005 11:21 am
Posts: 3
Location: Boulder CO USA
I'm using Eclipse 3.1 and Hibernate 3.0.

I downloaded the source code from the book Pro Hibernate 3. The ant file
below worked: it generated a little message for each hbm file it created. I
then check the hbm2 directory and confirm the hbm files are there..
However, when I create a new empty eclipse project (v3.1) and run ant from
the cygwin command prompt, it does NOT generate the hbm files. Same java files, almost the same build.xml file. No error
messages, no hbm files, no messages saying it generated the files.

Can someone tell me what is going on ?

Thanks,

<?xml version="1.0" encoding="UTF-8"?>


<project name="Blog" default="generate-hibernate" basedir=".">
<property name="xdoclet.lib.dir" value="C:\Documents and
Settings\Siegfried\My Documents\dev\XDoclet\xdoclet-1.2.3\lib" />
<property name="lib.dir" value="C:\Documents and Settings\Siegfried\My
Documents\dev\hibernate\hibernate-3.0" />
<property name="hibernate.dir" value="hbm2" />
<property name="src.dir" value="com/puregamesinc/dao/src" />
<property name="merge.dir" value="merge" />

<path id="xdoclet.lib.path">
<fileset dir="${xdoclet.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>

<target name="generate-hibernate">
<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpathref="xdoclet.lib.path" />

<!-- Generate Hibernate mapping files -->
<hibernatedoclet destdir="${hibernate.dir}"
mergeDir="${merge.dir}">
<fileset dir="com/puregamesinc/dao/src">
<include name="**/Blog.java" />
</fileset>

<hibernate version="2.0" />
</hibernatedoclet>
</target>
</project>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 12:37 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
Your question is quite wring in this forum. It's better asked in a tools forum, or if you are using XDoclet 1.x in mailing lists from sourceforge project:
http://www.sourceforge.net/projects/xdoclet

Or if you are willing to switch to XD2:
http://xdoclet.codehaus.org

regards

_________________
Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....


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.