Joined: Fri Apr 08, 2005 6:26 am Posts: 6 Location: Edinburgh, UK
|
I think this is aimed at Max,
Are the new ant tasks in a usable state yet? I have been sifting through the code and trying to get them to work. I have put together a basic build.xml file but I get a NullPointerException when I uncomment the hbm2Java and hbm2dll entries. Have I declared them incorrectly or is the code not usable yet?
Regards,
Chris Holman
<!-- Teach Ant how to use Hibernate's code generation tool -->
<taskdef name="hibernateTools"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="project.class.path"/>
<!-- Generate the java code for all mapping files in our source tree -->
<target name="-pre-compile" >
<hibernateTools destDir="${generated.source.root}">
<!--hbm2Java templatesPath="${source.root}"/-->
</hibernateTools>
</target>
<!-- Generate the schemas for all mapping files in our class tree -->
<target name="-post-compile">
<hibernateTools destDir="${generated.source.root}">
<!--hbm2ddl update="true" drop="true" outputFilename="test.ddl"/-->
</hibernateTools>
</target>
|
|