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.



Reply via email to