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