1 | void setClasspath(Path cp) {↵ | | 1 | void setClasspath(Path classpath) {↵
|
2 | if (classpath == null) {↵ | | 2 | if (dependClasspath == null) {↵
|
3 | classpath = cp;↵ | | 3 | dependClasspath = classpath;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | classpath.append(cp);↵ | | 5 | dependClasspath.append(classpath);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Adds a path to the↵ | | 9 | * Gets the classpath to be used for this dependency check.↵
|
| | | 10 | *↵
|
10 | classpath.↵ | | 11 | * @return the current dependency classpath↵
|
11 | * @return a classpath↵ | | 12 | */↵
|
| | | 13 | public Path getClasspath() {↵
|
| | | 14 | return dependClasspath;↵
|
| | | 15 | }↵
|
|
| | | 16 | /**↵
|
| | | 17 | * Adds a classpath to be used for this dependency check.↵
|
| | | 18 | *↵
|
12 | to be configured.↵ | | 19 | * @return A path object to be configured by Ant↵
|
13 | */↵ | | 20 | */↵
|
14 | public Path createClasspath() {↵ | | 21 | public Path createClasspath() {↵
|
15 | if (classpath == null) {↵ | | 22 | if (dependClasspath == null) {↵
|
16 | classpath = new Path(getProject());↵ | | 23 | dependClasspath = new Path(getProject());↵
|
17 | }↵ | | 24 | }↵
|
18 | return classpath.createPath();↵ | | 25 | return dependClasspath.createPath();↵
|
19 | | | 26 |
|