If someone could help, it would be appreciated.
I am wondering why my SchemaExportTask does not work, while my Hbm2JavaTask is fine. It seems that chemaExportTask can't find my *.hbm.xml files, while but the hbm2java has no problem (they use the same fileset).
While I run the SchemaExportTask, I get the following error:
Code:
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Environment <clinit>
[schemaexport] INFO: Hibernate 2.1.4
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Environment <clinit>
[schemaexport] INFO: hibernate.properties not found
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Environment <clinit>
[schemaexport] INFO: using CGLIB reflection optimizer
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Configuration configure
[schemaexport] INFO: configuring from file: hibernate.cfg.xml
[schemaexport] 15-Jul-2004 4:42:57 PM net.sf.hibernate.cfg.Configuration addResource
[schemaexport] INFO: Mapping resource: com/test/User.hbm.xml
BUILD FAILED
C:\tes\build.xml:72: Schema text failed: Resource: com/test/User.hbm.xml not found
Obviously, it can't find my User.hbm.xml. But why?
SchemaExportTask:
Code:
<schemaexport
quiet="no"
text="no"
drop="no"
delimiter=";"
output="schema-export.sql"
config="${basedir}/properties/hibernate.cfg.xml">
<fileset dir="${src}" includes="**/*.hbm.xml"/>
</schemaexport>
hbm2java:
Code:
<hbm2java output="${src}" config="${basedir}/properties/code_generator.config">
<fileset dir="${src}" includes="**/*.hbm.xml"/>
</hbm2java>
Any thoughts?