| I am having some problems with the Hibernate Doclet tool. I only added some simple code to my build file but it is not exactly working. Here is the code I added to my build file:
 
 
 <taskdef name="hibernatedoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask" classpathref="project.class.path"/>
 
 <target name="generate" description="Generates Hibernate class descriptor files." depends="compile">
 <!-- Define the hibernatedoclet task -->
 
 
 <!-- Execut the hibernatedoclet task -->
 <hibernatedoclet
 destdir="${jaaaava.dir}"
 excludedtags="@version,@author,@todo"
 force="true"
 mergedir="${jaaaava.dir}"
 >
 
 <fileset dir="${source.root}">
 <include name="**/*.java"/>
 </fileset>
 
 <hibernate version="2.0"/>
 
 </hibernatedoclet>
 </target>
 
 
 
 
 This is the output I get:
 
 C:\hibernate-2.1\practice9>ant generate
 Buildfile: build.xml
 
 prepare:
 
 compile:
 
 generate:
 [hibernatedoclet] INFO: Some classes refer to other classes that were not fou
 nd among the sources or on the classpath.
 [hibernatedoclet] (Perhaps the referred class doesn't exist? Hasn't bee
 n generated yet?)
 [hibernatedoclet] The referring classes do not import any fully qualifi
 ed classes matching these classes.
 [hibernatedoclet] However, since no packages are imported, xjavadoc has
 assumed that the referred classes
 [hibernatedoclet] belong to the same package as the referring class. Th
 e classes are:
 [hibernatedoclet] C:\hibernate-2.1\practice9\src\net\sf\hibernate\cache\ReadWrit
 eCache.java --> SoftLock qualified to net.sf.hibernate.cache.SoftLock
 [hibernatedoclet] C:\hibernate-2.1\practice9\src\net\sf\hibernate\collection\Sor
 tedSet.java --> SetProxy qualified to net.sf.hibernate.collection.SetProxy
 
 BUILD SUCCESSFUL
 Total time: 51 seconds
 
 
 
 What I wanted to do is create the mapping file from the class file. So I created a random folder in my src folder and put a java file for example Track.java in there, and I would like it to create the mapping file. I created a random folder in src called jaaaava which I believe the hibernate doclet tool would put the mapping files. However I get this weird output. It says I don't import package and it doesn't read the class files I want it to generate code for.
 
 Can anyone help me with this?
 
 
 |