axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/handlers/soap SOAPService.java
Date Wed, 30 Jun 2004 12:34:37 GMT
dims        2004/06/30 05:34:37

  Modified:    java/src/org/apache/axis/handlers/soap SOAPService.java
  Log:
  Allow wsdl's to be specified in webapp itself (relative to the root of the webapp)
  
  Revision  Changes    Path
  1.119     +10 -1     ws-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java
  
  Index: SOAPService.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java,v
  retrieving revision 1.118
  retrieving revision 1.119
  diff -u -r1.118 -r1.119
  --- SOAPService.java	20 Jun 2004 18:38:04 -0000	1.118
  +++ SOAPService.java	30 Jun 2004 12:34:37 -0000	1.119
  @@ -330,7 +330,16 @@
               if(file.exists()) {
                   //if this resolves to a file, load it
                   instream = new FileInputStream(filename);
  -            } else {
  +            } else if(msgContext.getStrProp(Constants.MC_HOME_DIR)!=null){
  +                String path = msgContext.getStrProp(Constants.MC_HOME_DIR) +'/' + filename;
  +                file = new File(path);
  +                if(file.exists()) {
  +                    //if this resolves to a file, load it
  +                    instream = new FileInputStream(path);
  +                }
  +            }
  +            
  +            if(instream == null) {
                   //else load a named resource in our classloader. 
                   instream = ClassUtils.getResourceAsStream(this.getClass(),filename);
                   if (instream == null) {
  
  
  

Mime
View raw message