You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Richard Emberson <re...@outerharbor.com> on 2003/02/28 19:52:51 UTC
Diagnostics.java bug
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.
Re: Diagnostics.java bug
Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 28 Feb 2003, Richard Emberson <re...@outerharbor.com>
wrote:
> In the ant file Diagnostics.java, in method
> doReportTasksAvailability change from So that a NoClassDefFoundError
> does not stop the listing.
This has already been fixed in CVS HEAD, NoClassDefFoundError gets
caught explicitly now.
Stefan