-->
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: Another go at finding an answer to no mapping files.
PostPosted: Tue Apr 26, 2005 3:32 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
Here is my ant task:

<target name="generate-mappings" depends="compile"\

<hibernatedoclet
destdir="${build.database.classes.dir.map}"
excludedtags="@version,@author,@todo,@desc"
addedtags="@xdoclet-generated at ${TODAY},@author"
force="true"
mergedir="${package.src.dir}"
verbose="true">
<fileset dir="${build.database.classes.dir.map}">
<include name="**/*.java"/>
<include name="exceptions/*.java"/>
<include name="dao/*.java"/>
</fileset>

<hibernate version="2.1"/>

<jbossservice ..../>
</hibernatedoclet>
</target>

This task runs, says it creates the mapping files, creates the jboss-service.xml and completes successfully. BUT, there are no mapping files in the build.database.classes.dir.map directory? What is going on? I have tried everything I can think of to include putting a . in front of the files in the include names. Changed the hibernate version to 2.0. My environment looks good. Any clues???????????


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 30, 2005 8:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Maybe you environment is not setting the variables. Try hard coding the ${build.database.classes.dir.map} values rather than use the properties. In anycase, try find an example package from one of the number of tutorials or example applications around.


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.