This patch allows you to use a custom configuration file located in the classpath outside of the Axis engine package. This proved to be useful to us when distributing our customized configurations using WebStart. /Thomas
Thomas Sandholm <[EMAIL PROTECTED]> The Globus Project(tm) <http://www.globus.org> Ph: 630-252-1682, Fax: 630-252-1997 Argonne National Laboratory
Index: FileProvider.java =================================================================== RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/configuration/FileProvider.java,v retrieving revision 1.26 diff -u -r1.26 FileProvider.java --- FileProvider.java 29 Mar 2002 00:01:26 -0000 1.26 +++ FileProvider.java 21 May 2002 04:12:15 -0000 @@ -195,8 +195,14 @@ myInputStream = new FileInputStream(configFile); } catch (Exception e) { if (searchClasspath) { - myInputStream = engine.getClass(). - getResourceAsStream(filename); + // look for custom configuration files outside of engine +package + myInputStream = engine.getClass().getClassLoader(). + getResourceAsStream(filename); + if (myInputStream == null) { + // if not found in classpath fall back to default config +file in engine package + myInputStream = engine.getClass(). + getResourceAsStream(filename); + } } } }