名称 hibernate-build.xml:
<project name="adminacegi" default="hibernate" basedir=".">//注:工程项目名称
<property name="src.dir" value="../src" />
<property name="lib.dir" value="/workstation/environment/lib" />//注:当前eclipse的workspace下要用到的包
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<pathelement location="${bin.model.dir}" />
</path>
<target name="hibernate">
<taskdef name="hibernatedoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask" classpathref="classpath" />
<hibernatedoclet destDir="${src.dir}" excludedtags="@version,@author,@todo" force="true" verbose="true">
<hibernate version="3.0" />
<fileset dir="${src.dir}">
<include name="**/hibernate/*.java" />
</fileset>
</hibernatedoclet>
</target>
</project>