axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: ClassLoader in Emitter
Date Thu, 23 Oct 2003 18:46:46 GMT
Matthew Pocock wrote:
> Hi,
> I've hit a snag with the axis-java2wsdl task. It doesn't accept a 
> classpath from which classes can be loaded. This means that we can only 
> work with classes that are in the ant classpath. Is this just one of 
> those things, or was it a concious design decision?

an accident; there is an open bug on it.

> Can I propose that we add a ClassLoader property in 
> org/apache/axis/wsdl/fromJava/ from which it loads all 
> classes by name? This can be complemented by adding a -classpath option 
> to java2wsdl (both ant task and application). People who know the 
> code-base better may have a more approreate place for the suplementary 
> ClassLoader property.
> I'm hacking my copy of the code from anonymous CVS and will be happy to 
> feed code back into the project.

The other place to put it in would be the ant task itself. Ant1.6 has a 
classloader mechanism you could reuse (antclassloader). If you implement 
your own you need to test your changes under both Ant1.6 and 
ant-under-IDE to make sure that all is still well.

View raw message