You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ow...@apache.org on 2002/07/04 16:33:49 UTC

cvs commit: xml-axis-wsif/java/src/org/apache/wsif/wsdl WSIFWSDLLocatorImpl.java

owenb       2002/07/04 07:33:49

  Modified:    java/src/org/apache/wsif/wsdl WSIFWSDLLocatorImpl.java
  Log:
  Added  extra functionality for finding imports when the base is null and classloader is not null
  
  Revision  Changes    Path
  1.2       +5 -1      xml-axis-wsif/java/src/org/apache/wsif/wsdl/WSIFWSDLLocatorImpl.java
  
  Index: WSIFWSDLLocatorImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/wsdl/WSIFWSDLLocatorImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WSIFWSDLLocatorImpl.java	26 Jun 2002 14:08:52 -0000	1.1
  +++ WSIFWSDLLocatorImpl.java	4 Jul 2002 14:33:49 -0000	1.2
  @@ -156,7 +156,11 @@
    
                           InputStream in = loader.getResourceAsStream(url.getPath()); 
                           importReader = new InputStreamReader(in); 
  -                    } 
  +                    } else {
  +                    	url = new URL(null, "file:" + relativeLocation);
  +                    	InputStream in = loader.getResourceAsStream(url.getPath()); 
  +                        importReader = new InputStreamReader(in); 
  +                    }
                   } 
               } else { 
                   URL contextURL = (base != null) ? StringUtils.getURL(null, base) : null;