Thanks for the advise Aslak.

Yes, I have worked out the problem. You are right, it's a class path
reference prob. I have two same key declared in two different properties
file, one overwritting another, all the time I have assumed only one. This
points to a wrong path, hence the prob. all thanks to my old habit of cut
and paste :(

Thanks for the pointer.

/bernard

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 8:58 PM
Subject: Re: [Xdoclet-user] hibernate 2.0b4 task does not generate anything


> If it generates nothing, chances are that your fileset includes nothing 
> (as with Otis) or that none of the sources on the fileset have proper 
> @hibernate tags in the class header. You are using /** */ aren't you?
> 
> Aslak
> 
> ----- Original Message -----
> From: "Bernardinus" <[EMAIL PROTECTED]>
> Date: Thursday, March 27, 2003 12:17 pm
> Subject: [Xdoclet-user] hibernate 2.0b4 task does not generate anything
> 
> > Hi all,
> > 
> > I'm trying to port my web app from using hibernate 1.2 to 
> > hibernate 2.0b4
> > (cvs version), I'm using xdoclet 1.2b3-dev (cvs), but was stuck on.
> > 
> > I'm not getting any mapping file generated by xdoclet. Someone 
> > (Otis) was
> > having a similar prob. earlier and Aslak sugested a solution which 
> > solvedhis prob. Trying that on my case doesn't seem to help. 
> > xdoclet generate 
> > the
> > java class file ok, though.
> > 
> > the output I get is:
> > 
> > xdoclet.hibernate.mapping:
> > [hibernatedoclet] (XDocletMain.start                   45  ) Running
> > <hibernate/>
> > 
> > 
> > Anyone shed me light?
> > 
> > btw, the ant script is a hack from xpetstore sample.
> > here is my ant build script related tasks:
> > ----------------------------------------
> > <target name="xdoclet">
> >  <!-- all hibernate xdoclet tasks -->
> >  <antcall target="xdoclet.hibernate.mapping" />
> >  <antcall target="xdoclet.hibernate.properties" />
> >  <antcall target="xdoclet.hibernate.ddl" />
> > </target>
> > 
> > 
> > <target name="xdoclet.hibernate.mapping" depends="init">
> >        <delete>
> >         <fileset dir="${build.java.dir}" includes="**/*.hbm.xml"/>
> >        </delete>
> > 
> >  <taskdef
> >            name="hibernatedoclet"
> >            classname="xdoclet.modules.hibernate.HibernateDocletTask"
> >         classpathref="xdoclet.class.path"
> >        />
> > 
> >  <hibernatedoclet destdir="${build.java.dir}" verbose="true">
> >   <fileset dir="${src.java.dir}">
> >      <include name="**/domain/**/*.java" />
> >    </fileset>
> > 
> >     <hibernate />
> > 
> >    </hibernatedoclet>
> >   </target>
> > 
> > 
> >   <target name="xdoclet.hibernate.properties" depends="init">
> >        <!-- hibernate.properties config file -->
> >        <copy file="${conf.db.dir}/${database}.properties"
> > tofile="${build.class.dir}/hibernate.properties"/>
> >   </target>
> > 
> > 
> > <target name="xdoclet.hibernate.ddl" depends="init">
> >   <!-- Mapping Files -->
> >  <fileset id="hibernate.mapping.files" dir="${build.java.dir}">
> >      <include name="**/*.hbm.xml" />
> >  </fileset>
> >     <pathconvert refid="hibernate.mapping.files"
> > property="hibernate.mappings" pathsep=" "/>
> > 
> >     <!-- Compile the domain classes -->
> >     <javac
> >      srcdir="${src.java.dir}"
> >            destdir="${build.class.dir}"
> >            debug="${compiler.debug}"
> >            deprecation="${compiler.deprecation}"
> >            compiler="${compiler.type}"
> >            classpathref="project.class.path"
> >        >
> >         <include name="**/domain/**/*.java" />
> >        </javac>
> > 
> >     <!-- Generate the DDL -->
> >     <java
> >      classname="net.sf.hibernate.tool.hbm2ddl.SchemaExport"
> >      fork="true"
> >     >
> >            <arg
> > line="--quiet --delimiter=; --format --text --
> > output=${build.sql.dir}/schema
> > s.sql ${hibernate.mappings}"/>
> >         <jvmarg value="-Dhibernate.dialect=${hibernate.dialect}"/>
> >          <jvmarg
> > value="-
> > Dhibernate.connection.driver_class=${hibernate.connection.driver_cla
> > ss}"/>
> >          <jvmarg
> > value="-Dhibernate.connection.url=${hibernate.connection.url}"/>
> >          <jvmarg
> > value="-
> > Dhibernate.connection.username=${hibernate.connection.username}"/> 
> >         <jvmarg
> > value="-
> > Dhibernate.connection.password=${hibernate.connection.password}"/>
> >          <classpath>
> >    <dirset dir="${build.class.dir}" />
> >    <path  refid="project.class.path"/>
> >    </classpath>
> >     </java>
> > </target>
> > --------------------------------------------------------
> > 
> > Thanks,
> > /bernard
> > 
> > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> > http:
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to