1 | void setClasspath(Path classpath) {↵ | | 1 | void setClasspath(Path classpath) {↵
|
2 | if (this.classpath == null) {↵ | | 2 | if (this.classpath == null) {↵
|
3 | this.classpath = classpath;↵ | | 3 | this.classpath = classpath;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | this.classpath.append(classpath);↵ | | 5 | this.classpath.append(classpath);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * The classpath to use when looking up a resource.↵ | | 9 | * ↵
|
10 | * @return a path to be configur↵ | | 10 | @see #setClasspath↵
|
11 | ed↵ | | 11 | * @return the classpath created↵
|
12 | */↵ | | 12 | */↵
|
13 | public Path createClasspath() {↵ | | 13 | public Path createClasspath() {↵
|
14 | if (this.classpath == null) {↵ | | 14 | if (this.classpath == null) {↵
|
15 | this.classpath = new Path(getProject());↵ | | 15 | this.classpath = new Path(getProject());↵
|
16 | }↵ | | 16 | }↵
|
17 | return this.classpath.createPath();↵ | | 17 | return this.classpath.createPath();↵
|
18 | | | 18 |
|