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