ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Available.java
Date Sat, 03 Feb 2001 14:07:34 GMT
conor       01/02/03 06:07:34

  Modified:    src/main/org/apache/tools/ant/taskdefs Available.java
  Log:
  Handle classes which are on the classpath but which cannot be loaded due to
  downstream dependencies.
  
  Revision  Changes    Path
  1.17      +5 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Available.java
  
  Index: Available.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Available.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Available.java	2001/01/08 12:52:06	1.16
  +++ Available.java	2001/02/03 14:07:34	1.17
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -170,7 +170,10 @@
               }
               return true;
           } catch (ClassNotFoundException e) {
  -            log(e.toString(), Project.MSG_VERBOSE);
  +            log("Class not found: " + classname, Project.MSG_VERBOSE);
  +            return false;
  +        } catch (NoClassDefFoundError e) {
  +            log("Class cound not be loaded: " + classname, Project.MSG_VERBOSE);
               return false;
           }
       }
  
  
  

Mime
View raw message