-->
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.  [ 3 posts ] 
Author Message
 Post subject: Using XDoclet for mapping file generation
PostPosted: Thu Jul 01, 2004 10:05 am 
Newbie

Joined: Thu Jul 01, 2004 9:42 am
Posts: 2
Trying to use the XDoclet with hibernate. Mapping file is not generated when I run the ant with build file containing an entry for creating mapping file. The task is defined as follows based on the example shown in

Documentation > Community Area > XDoclet for Hibernate page


<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask">
<classpath >
<fileset dir="${env.XDOCLET_HOME}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>

The target for running this task is

<target name="hibernate.config" depends="compile">

<!-- Execute the hibernatedoclet task -->
<hibernatedoclet destdir="${generated.home}"
excludedtags="@version,@author,@todo"
force="true"
mergedir="${generated.home}"
verbose="false">

<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>

<hibernate version="2.0"/>

</hibernatedoclet>

</target>

In my IDE (IntelliJ) hibernatedoclet word in the opening tag shows up in red color and passing the mouse on to that shows "Element hibernatedoclet is not allowed here"

Where is the problem?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 2:10 pm 
Newbie

Joined: Thu Jul 01, 2004 9:42 am
Posts: 2
Bumping it up to enable more visitors to see and respond


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 2:11 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
So, does it work or not? Only because IntelliJ can't recognize Ant tasks properly in the editor doesn't mean its wrong what you are doing.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.