ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Sigurdsson <gun...@comnipoint.com>
Subject Re: taskdef classpath problem
Date Thu, 29 Dec 2005 18:11:53 GMT
I am not loading the resources directly, that happens as a
side effect of GenDDL using a class from one of these other jars.

The full details are like this. Lets say GenDDL.class is in
GenDDL.jar, and GenDDL.class calls a class Context.class which is
in Context.jar, and that same jar contains a text file
Context.xml. Now Contex.class is a sublcass of
org.springframework.context.support.ClassPathXmlApplicationContext
which is in spring.jar. The failure occurs when
ClassPathXmlApplicationContext tries to find Context.xml. I get a
FileNotFoundException.

Thanks for taking a look at this.

Gunnar

On Thu, 29 Dec 2005, Stefan Bodewig wrote:

> On Wed, 28 Dec 2005, Gunnar Sigurdsson <gunnar@comnipoint.com> wrote:
> 
> > The GenDDL class depends on other jar files that are in the same 
> > "lib" directory. When the "ddl" target is executed, ant finds the 
> > GenDDL class and executes it, but it does not find resources in the 
> > other jar files. 
> 
> How are you trying to load the resources?  Are you explicitly using
> the classloader that has loaded your task?
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


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


Mime
View raw message