-->
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: Simple hbm2java ANT script - why it always uses xdoclet1?
PostPosted: Tue Nov 29, 2005 7:19 am 
Beginner
Beginner

Joined: Tue Nov 22, 2005 6:55 am
Posts: 41
Hi,

I have the following ant script, the hbms are already generated. I just need to generate classes with xdoclet2 instead of xdoclet1

In my project in lib directory i have only xdoclet2, i deleted v1.

Why it always generates classes with xdoclet1?

Code:
<target name="hbm2java"  depends="middlegen" description="Generate .java from .hbm files.">
      <taskdef
         name="hbm2java"
         classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
         classpathref="lib.class.path"
      />
      
         <hbm2java output="${build.gen-src.dir}">
         <fileset dir="${build.gen-src.dir}">
            <include name="**/*.hbm.xml"/>
         </fileset>
      </hbm2java>
      
   </target>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 8:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
could it be because middlegen puts xdoclet v1 comments into the hbm.xml's ? ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 6:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
It is true that Middlegen generates doclet markup for the POJOs that was based on XDoclet 1.x . I am using that version (still) thus I was/am not motivated to add further enhancements beyond that. I would expect Xdoclet 2 to be able to work using the same tags (atleast at that level) as they were standard before XDoclet 2 really developed further. Maybe I am wrong. In anycase, I am happy to accept a Patch (inc configuration seting abiltiies) to switch the target Xdoclet generator tags.


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.