ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Troy S <troysocks-tw...@yahoo.com>
Subject Re: Can't find DocumentException
Date Thu, 26 Feb 2009 19:32:29 GMT

Hi Milene,

I thought I was doing that with

 
  <!-- Teach Ant how to use the Hibernate Tools -->
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="project.class.path"/>

Is this not right?

Troy


mylene wrote:
> 
> Maybe you should add your classpath to your codegen too?
> 
> Mylène
> 
> 
> On Wed, Feb 25, 2009 at 7:56 PM, Troy S <troysocks-twigs@yahoo.com> 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: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> 
> -- 
> Mylene
> 
> 

-- 
View this message in context: http://www.nabble.com/Can%27t-find-DocumentException-tp22209309p22231798.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message