1 | if (getSourcespath() != null) {↵ | | 1 | if (getClassespath() != null) {↵
|
2 | // This is deprecated - use classespath in the future↵ | | 2 | // This is the new way - use classespath - code is the↵
|
| | | 3 | // same for now↵
|
3 | String[] sP = getSourcespath().list();↵ | | 4 | String[] cP = getClassespath().list();↵
|
4 | for (int i = 0; i < sP.length; i++) {↵ | | 5 | for (int i = 0; i < cP.length; i++) {↵
|
5 | File f = new File(sP[i]);↵ | | 6 | File f = new File(cP[i]);↵
|
|
6 | // not necessary as JDepend would fail, but why loose↵ | | 7 | // not necessary as JDepend would fail, but why loose↵
|
7 | // some time?↵ | | 8 | // some time?↵
|
8 | if (!f.exists() || !f.isDirectory()) {↵ | | 9 | if (!f.exists()) {↵
|
9 | throw new BuildException("\"" + f.getPath()↵ | | 10 | throw new BuildException("\"" + f.getPath()↵
|
10 | + "\" does not represent a valid"↵ | | 11 | + "\" does not represent a valid"↵
|
11 | + " directory. JDepend would"↵ | | 12 | + " file or directory. JDepend would"↵
|
12 | + " fail.");↵ | | 13 | + " fail.");↵
|
13 | }↵ | | 14 | }↵
|
14 | commandline.createArgument().setValue(f.getPath());↵ | | 15 | commandline.createArgument().setValue(f.getPath());↵
|
15 | }↵ | | 16 | }↵
|
16 | } | | 17 | }
|