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 solved
his 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://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user