i made a cut and paste error the hb2java section of my build.xml file is actually this:
Code:
<target name="hbm2java" description="Generate .java from .hbm files.">
<taskdef
name="hbm2java"
classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
classpathref="lib.class.path"
/>
<hbm2java output="${build.gen-src.dir}">
<fileset dir="${build.gen-src.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2java>
</target>
I still get the error. In the original posting i was messing around with the build.xml file trying to get it to work and find the Hbm2javaTask