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