Skip to main content



      Home
Home » Newcomers » Newcomers » hibernatedoclet does not work in eclipse directory
hibernatedoclet does not work in eclipse directory [message #87493] Mon, 18 July 2005 15:54 Go to next message
Eclipse UserFriend
Originally posted by: siegfried.heintze.com

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 chheck 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 generate the hbm files. 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>
Re: hibernatedoclet does not work in eclipse directory [message #87594 is a reply to message #87493] Mon, 18 July 2005 18:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: siegfried.heintze.com

Critical typo above!

Here is what I meant to say:

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.
Re: hibernatedoclet does not work in eclipse directory [message #87624 is a reply to message #87594] Tue, 19 July 2005 00:14 Go to previous messageGo to next message
Eclipse UserFriend
"Siegfried Heintze" <siegfried@heintze.com> wrote in message
news:dbhb7b$t0s$2@news.eclipse.org...
> Critical typo above!
> Here is what I meant to say:
> 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.
Siegfried, you may try your luck on the webtools newsgroup?
Re: hibernatedoclet does not work in eclipse directory [message #88137 is a reply to message #87624] Thu, 21 July 2005 01:08 Go to previous message
Eclipse UserFriend
Originally posted by: siegfried.heintze.com

Philippe Ombredanne:

No luck so far. Why web tools? This is not specific to the web.

Sieg
Previous Topic:java.lang.UnsatisfiedLinkError
Next Topic:Where does Update Manager temporarily save files?
Goto Forum:
  


Current Time: Thu May 15 05:07:07 EDT 2025

Powered by FUDForum. Page generated in 0.09491 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top