ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Emberson <rember...@outerharbor.com>
Subject Diagnostics.java bug
Date Fri, 28 Feb 2003 18:52:51 GMT
In the ant file Diagnostics.java, in method doReportTasksAvailability
change from:
                 for (Enumeration keys = props.keys(); 
keys.hasMoreElements();){
                     String key = (String)keys.nextElement();
                     String classname = props.getProperty(key);
                     try {
                         Class.forName(classname);
                         props.remove(key);
                     } catch (Exception ex){
                         out.println(key + " : Not Available");
                     }
to:
                 for (Enumeration keys = props.keys(); 
keys.hasMoreElements();){
                     String key = (String)keys.nextElement();
                     String classname = props.getProperty(key);
                     try {
                         Class.forName(classname);
                         props.remove(key);
                     } catch (Exception ex){
                         out.println(key + " : Not Available");
                     } catch (Error e){
                         out.println(key + " : Not Available");
                     }

So that a NoClassDefFoundError does not stop the listing.


Mime
View raw message