Hi I generated hbm.xml files with xDoclet in a directory called antOutput/bin
and I also compiled the java objects there
As I read in the posts before I have to set the classpath in the taskdef
so I did:
Code:
<taskdef name="schemaexport" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask">
<classpath path="antOutput/bin"/>
</taskdef>
but then I get the following error:
Quote:
net.sf.hibernate.MappingException: persistent class [dataobjects.User] not found
This problem does not occur when I set the classpath explicit to this directory (antOutput/bin), before I call ant.
Has anyone a suggestion why this phenomenon occurs or how I should change my build.xml file?