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