your defined ant task is only user for Hibernate2,here is a example for Hibernate3:
Code:
<target name="schema" depends="compile,xdoclet2" description="Generate DB schema from the O/R mapping files">
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask">
<classpath refid="project.class.path" />
</taskdef>
<hibernatetool>
<configuration configurationfile="${web-inf.dir}/classes/hibernate.cfg.xml"/>
<hbm2ddl update="true" destdir="${data.dir}" drop="false" outputfilename="salePM.sql" />
</hibernatetool>
</target>