ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant AntClassLoader.java
Date Wed, 09 Aug 2000 14:45:01 GMT
conor       00/08/09 07:45:01

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  Do not try to load from jars which don't exist
  
  Revision  Changes    Path
  1.4       +4 -0      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AntClassLoader.java	2000/07/24 15:52:53	1.3
  +++ AntClassLoader.java	2000/08/09 14:45:00	1.4
  @@ -178,6 +178,10 @@
        */
       private InputStream getResourceStream(File file, String resourceName) {
           try {
  +            if (!file.exists()) {
  +                return null;
  +            }
  +            
               if (file.isDirectory()) {
                   File resource = new File(file, resourceName); 
                   if (resource.exists()) {   
  
  
  

Mime
View raw message