|
Hi everyone, I just started using Xdoclet2 1.0.2 and Ant to generate some
hibernate mappings but I keep getting the following error when parsing Java 5
enums: com.thoughtworks.qdox.parser.ParseException: syntax error. What am I
doing wrong? Any help would be greatly appreciated. Below is my ant build file. Thanks in advance, Horacio <project name="xdoclet2-hibernate"
default="xdoclet2"> <!—define properties --> … <path
id="xdoclet2.task.classpath"> <!-- xdoclet2
runtime dependencies --> <fileset
dir="${xdoclet2.lib.dir}">
<include name="**/*.jar"/> </fileset> <!-- Add the
xdoclet2 hibernate plugin jar --> <pathelement
location="${xdoclet2.lib.dir}/plugins/xdoclet-plugin-hibernate-1.0.2.jar"/> </path> <target name="xdoclet2"> <mkdir
dir="${basedir}/target/xdoclet2/persistence"/> <taskdef
name="xdoclet2"
classname="org.xdoclet.ant.XDocletTask"
classpathref="xdoclet2.task.classpath"
/> </target> <target name="remove"
depends="xdoclet2"> <delete>
<fileset dir="${src.dir}">
<include name="**/*.hbm.xml"/>
</fileset> </delete> </target> <target name="hibernate"
depends="remove"> <xdoclet2>
<!-- defines the files handled by xdoclet2 -->
<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>
<!-- defines the processing of the hibernate plugin -->
<component
classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
destdir="${src.dir}"
version="2.0"
/> </xdoclet2> </target> </project> |
