1 | void setClasspath(Path classpath) {↵ | | 1 | void setBootclasspath(Path bootclasspath) {↵
|
2 | if (this.classpath == null) {↵ | | 2 | if (this.bootclasspath == null) {↵
|
3 | this.classpath = classpath;↵ | | 3 | this.bootclasspath = bootclasspath;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | this.classpath.append(classpath);↵ | | 5 | this.bootclasspath.append(bootclasspath);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * The classpath to use when looking up a resource↵ | | 9 | * Gets the bootclasspath that will be used to compile the classes↵
|
| | | 10 | * against.↵
|
| | | 11 | * @return the boot path↵
|
| | | 12 | */↵
|
| | | 13 | public Path getBootclasspath() {↵
|
| | | 14 | return bootclasspath;↵
|
| | | 15 | }↵
|
|
| | | 16 | /**↵
|
10 | .↵ | | 17 | * Adds a path to the bootclasspath.↵
|
11 | * @return a path to be configured↵ | | 18 | * @return a path to be configured↵
|
12 | */↵ | | 19 | */↵
|
13 | public Path createClasspath() {↵ | | 20 | public Path createBootclasspath() {↵
|
14 | if (this.classpath == null) {↵ | | 21 | if (bootclasspath == null) {↵
|
15 | this.classpath = new Path(getProject());↵ | | 22 | bootclasspath = new Path(getProject());↵
|
16 | }↵ | | 23 | }↵
|
17 | return this.classpath.createPath();↵ | | 24 | return bootclasspath.createPath();↵
|
18 | | | 25 |
|