Googling around I found one could specify the attribute below for the hbm2java ant task..
config="${build.dir}/hibernate.cfg.xml
Acco Lade wrote:
Clarification: I would like to run hbm2java from within ANT with the following config:
<codegen>
<!-- <generate prefix="Base" renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer"/> -->
<generate renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer">
<param name="generate-empty-concrete-classes">true</param>
<param name="baseclass-prefix">Base</param>
</generate>
</codegen>