Browse Source

Make antstructure ommit tasks it cannot load properly.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268786 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
4053c68fd7
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      src/main/org/apache/tools/ant/taskdefs/AntStructure.java

+ 11
- 1
src/main/org/apache/tools/ant/taskdefs/AntStructure.java View File

@@ -192,7 +192,17 @@ public class AntStructure extends Task {
}
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(" ");


Loading…
Cancel
Save