Maybe you should add your classpath to your codegen too? Mylène
On Wed, Feb 25, 2009 at 7:56 PM, Troy S <[email protected]> wrote: > > Hi Ant fans, > > When I run codegen, I get the error can't find DocumentException. > > The class file is in the jar file C:/java/dom4j-1.6.1/dom4j-1.6.1.jar > > How do I track down why the class is not being picked up. > > Troy > > $ ant -verbose codegen > > <snip> > > <target name="codegen" > description="Generate Java source from the O/R mapping files"> > <hibernatetool destdir="${source.root}"> > <configuration> > <fileset dir="${source.root}"> > <include name="**/*.hbm.xml"/> > </fileset> > </configuration> > <hbm2java/> > </hibernatetool> > </target> > <target name="print-classpath" description="Show the dependency class > path"> > <property name="class.path" refid="dependency.class.path"/> > <echo>${class.path}</echo> > </target> > > </project> > > -- > View this message in context: > http://www.nabble.com/Can%27t-find-DocumentException-tp22209309p22209309.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Mylene
