1 | if (setFilter != null) {↵ | | 1 | if (catPath != null) {↵
|
2 | Vector v = new Vector();↵ | | 2 | ↵
|
3 | for (int i = 0; i < patterns.length; i++) {↵ | | |
|
4 | v.addElement(patterns[i]↵ | | 3 | log("Using catalogpath '" + getCatalogPath() + "'",↵
|
| | | 4 | Project.MSG_DEBUG);↵
|
5 | );↵ | | 5 | String[] catPathList = getCatalogPath().list();↵
|
|
6 | }↵ | | 6 | ↵
|
7 | try {↵ | | 7 | for (int i = 0; i < catPathList.length; i++) {↵
|
8 | Object o = packageFilterC.newInstance(new Object[] {v});↵ | | 8 | File catFile = new File(catPathList[i]);↵
|
9 | setFilter.invoke(jdepend, new Object[] {o});↵ | | 9 | log("Parsing " + catFile, Project.MSG_DEBUG);↵
|
10 | } catch (Throwable e) {↵ | | 10 | try {↵
|
11 | log("excludes will be ignored as JDepend doesn't like me: "↵ | | 11 | ↵
|
| | | 12 | parseCatalog.invoke(resolverImpl,↵
|
12 | + e.getMessage(), Project.MSG_WARN);↵ | | 13 | new Object[] {catFile.getPath()});↵
|
13 | }↵ | | 14 | ↵
|
14 | } else {↵ | | 15 | ↵
|
15 | log("Sorry, your version of JDepend doesn't support excludes",↵ | | 16 | } catch (Exception ex) {↵
|
| | | 17 | throw new BuildException(ex);↵
|
16 | Project.MSG_WARN);↵ | | 18 | }↵
|
| | | 19 | }↵
|
17 | } | | 20 | }
|