ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant AntClassLoader.java
Date Tue, 03 Dec 2002 09:01:54 GMT
bodewig     2002/12/03 01:01:53

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  Don't append a dot to package roots if there already is one.
  
  Revision  Changes    Path
  1.60      +4 -2      jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java
  
  Index: AntClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- AntClassLoader.java	22 Aug 2002 18:24:14 -0000	1.59
  +++ AntClassLoader.java	3 Dec 2002 09:01:52 -0000	1.60
  @@ -513,7 +513,8 @@
        *                    Should not be <code>null</code>.
        */
       public void addSystemPackageRoot(String packageRoot) {
  -        systemPackages.addElement(packageRoot + ".");
  +        systemPackages.addElement(packageRoot 
  +                                  + (packageRoot.endsWith(".") ? "" : "."));
       }
   
       /**
  @@ -526,7 +527,8 @@
        *                    Should not be <code>null</code>.
        */
       public void addLoaderPackageRoot(String packageRoot) {
  -        loaderPackages.addElement(packageRoot + ".");
  +        loaderPackages.addElement(packageRoot
  +                                  + (packageRoot.endsWith(".") ? "" : "."));
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message