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 the classpath.↵ | | 9 | * Gets the classpath to be used for this compilation.↵
|
10 | * @return a classpath to be configured.↵ | | 10 | * @return the class path used for compilation↵
|
| | | 11 | */↵
|
| | | 12 | public Path getClasspath() {↵
|
| | | 13 | return compileClasspath;↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
| | | 16 | * Adds a path to the classpath.↵
|
| | | 17 | * @return a classpath↵
|
11 | */↵ | | 18 | */↵
|
12 | public Path createClasspath() {↵ | | 19 | public Path createClasspath() {↵
|
13 | if (classpath == null) {↵ | | 20 | if (compileClasspath == null) {↵
|
14 | classpath = new Path(getProject());↵ | | 21 | compileClasspath = new Path(getProject());↵
|
15 | }↵ | | 22 | }↵
|
16 | return classpath.createPath();↵ | | 23 | return compileClasspath.createPath();↵
|
17 | | | 24 |
|