bodewig 01/03/09 01:30:58
Modified: src/main/org/apache/tools/ant/taskdefs AntStructure.java
Log:
Make antstructure ommit tasks it cannot load properly.
Revision Changes Path
1.11 +11 -1
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java
Index: AntStructure.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- AntStructure.java 2001/03/09 09:23:51 1.10
+++ AntStructure.java 2001/03/09 09:30:58 1.11
@@ -192,7 +192,17 @@
}
visited.put(name, "");
- IntrospectionHelper ih = IntrospectionHelper.getHelper(element);
+ IntrospectionHelper ih = null;
+ try {
+ ih = IntrospectionHelper.getHelper(element);
+ } catch (Throwable t) {
+ /*
+ * XXX - failed to load the class properly.
+ *
+ * should we print a warning here?
+ */
+ return;
+ }
StringBuffer sb = new StringBuffer("<!ELEMENT ");
sb.append(name).append(" ");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]