I tested it now with the latest nightly build, and the NullpointerException still occurs.
One more question: is it possible to run hbm2java without a hibernate.cfg.xml? In an earlier version of hbm2java, this was possible by just quoting a fileset dir where all hbm.xml files were situated:
Code:
<hbm2java output="${dir.gensrc.base}">
<fileset dir="${dir.gensrc.base}/${dir.gensrc.path}">
<include name="**/*.hbm.xml" />
</fileset>
</hbm2java>
Now this does not seem to be possible anymore (unless I am missing something). The error message is:
"Class org.hibernate.tool.ant.Hbm2JavaExporterTask doesn't support the nested "fileset" element."
This is a bit of a nuisance because my hibernate.cfg.xml File is not in the same project as the *.hbm.xml Files.