<?xml version="1.0" encoding="UTF-8"?>
<project name="OA" default="Hibernate_cfg" basedir="."> <property name="src.dir" value="${basedir}/src" />
<property name="xdoclet.home" value="E:/Util/xdoclet-plugins-1.0.3" /> <!-- Build classpath -->
<path id="xdoclet.task.classpath">
<fileset dir="${xdoclet.home}/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${xdoclet.home}/plugins">
<include name="**/*.jar" />
</fileset>
</path>
<project name="OA" default="Hibernate_cfg" basedir="."> <property name="src.dir" value="${basedir}/src" />
<property name="build.dir" value="${basedir}/bin" />
<property name="webapp.dir" value="${basedir}/src/webapp" />
<property name="xdoclet.home" value="E:/Util/xdoclet-plugins-1.0.3" /> <!-- Build classpath -->
<path id="xdoclet.task.classpath">
<fileset dir="${xdoclet.home}/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${xdoclet.home}/plugins">
<include name="**/*.jar" />
</fileset>
</path>

<taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask"
classpathref="xdoclet.task.classpath" /> <target name="Hibernate_cfg">
<xdoclet>
<fileset dir="${src.dir}/com/neusoft/oa/pojo">
<include name="**/*.java" />
</fileset>
<component classname="org.xdoclet.plugin.hibernate.HibernateConfigPlugin" 
destdir="${src.dir}" 
version="3.0" 
hbm2ddlauto="update" 
jdbcurl="jdbc:mysql://127.0.0.1/oa" 
jdbcdriver="com.mysql.jdbc.Driver" 
jdbcusername="root" 
jdbcpassword="root"
dialect="org.hibernate.dialect.MySQLDialect" 
showsql="true" 
/>
</xdoclet>
</target>
<target name="Hibernate_hbm">
<xdoclet>
<fileset dir="${src.dir}/com/neusoft/oa/pojo">
<include name="**/*.java" />
</fileset>
<component classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" version="3.0" destdir="${src.dir}" />
</xdoclet>
</target>
</project>
<taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask"
classpathref="xdoclet.task.classpath" /> <target name="Hibernate_cfg">
<xdoclet>
<fileset dir="${src.dir}/com/neusoft/oa/pojo">
<include name="**/*.java" />
</fileset>
<component classname="org.xdoclet.plugin.hibernate.HibernateConfigPlugin" destdir="${src.dir}" version="3.0" hbm2ddlauto="update" jdbcurl="jdbc:mysql://127.0.0.1/oa_200706" jdbcdriver="com.mysql.jdbc.Driver" jdbcusername="root" jdbcpassword="mysql" dialect="org.hibernate.dialect.MySQLDialect" showsql="true" />
</xdoclet>
</target>
<target name="Hibernate_hbm">
<xdoclet>
<fileset dir="${src.dir}/com/neusoft/oa/pojo">
<include name="**/*.java" />
</fileset>
<component classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" version="3.0" destdir="${src.dir}" />
</xdoclet>
</target>
</project>
Buildfile: E:\Workspaces\MyEclipse 8.5\webproject\OA_0200_2010\build.xmlBUILD FAILED
E:\Workspaces\MyEclipse 8.5\webproject\OA_0200_2010\build.xml:16: Problem: failed to create task or type project
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 122 milliseconds请哪位大虾帮我解决下