axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl Namespaces.java
Date Mon, 03 Dec 2001 14:48:15 GMT
butek       01/12/03 06:48:15

  Modified:    java/src/org/apache/axis/wsdl Namespaces.java
  Log:
  Namespaces.toDir used to do (outputDir + pkgName).replace('.', '/').  What it
  SHOULD do is outputDir + pkgName.replace('.', '/').  This really messed up output
  directories like "../../other/dir".
  
  Revision  Changes    Path
  1.11      +2 -6      xml-axis/java/src/org/apache/axis/wsdl/Namespaces.java
  
  Index: Namespaces.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Namespaces.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Namespaces.java	2001/11/27 20:00:22	1.10
  +++ Namespaces.java	2001/12/03 14:48:15	1.11
  @@ -118,6 +118,7 @@
        */
       public String toDir(String pkg) {
           String dir = null;
  +        pkg = pkg.replace('.', File.separatorChar);
           if (root == null) {
               dir = pkg;
           }
  @@ -125,12 +126,7 @@
               dir = root + File.separatorChar + pkg;
           }
   
  -        if (dir == null || dir.equals("")) {
  -            return "";
  -        }
  -        else {
  -            return dir.replace('.', File.separatorChar) + File.separatorChar;
  -        }
  +        return dir == null ? "" : dir + File.separatorChar;
       } // toDir
   
       /**
  
  
  

Mime
View raw message