posted 16 years ago
Hey,
I'm trying to complete a simple HelloWorld app using Hibernate and came across the following issue:
taskdef class org.hibernate.tool.ant.HibernateToolTask cannot be found
becuase of the following addition to my build file:
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="project.classpath"/>
<target name="schemaexport" depends="compile, copymetafiles"
description="Exports a generated schema to DB and file">
<hibernatetool destdir="${basedir}">
<classpath path="${build.dir}"/>
<configuration
configurationfile="${build.dir}/hibernate.cfg.xml"/>
<hbm2ddl
drop="true"
create="true"
export="true"
outputfilename="helloworld-ddl.sql"
delimiter=";"
format="true"/>
</hibernatetool>
</target>
I've been trying to figure out what the issue is, and cannot seem to find the answer. I've loaded all of the hibernate libraries, and required third party libraries.
Thanks,
Gerardo Ramirez