1 | void setClasspath(Path cp) {↵ | | 1 | void setClasspath(Path cp) {↵
|
2 | if (classpath == null) {↵ | | 2 | if (classpath == null) {↵
|
3 | classpath = cp;↵ | | 3 | classpath = cp;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | classpath.append(cp);↵ | | 5 | classpath.append(cp);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Adds a path to the classpath.↵ | | 9 | * Adds a path to the classpath.↵
|
10 | * @return a path to be configured.↵ | | 10 | * @return a classpath to be configured.↵
|
11 | */↵ | | 11 | */↵
|
12 | public Path createClasspath() {↵ | | 12 | public Path createClasspath() {↵
|
13 | if (classpath == null) {↵ | | 13 | if (classpath == null) {↵
|
14 | classpath = new Path(getProject());↵ | | 14 | classpath = new Path(getProject());↵
|
15 | }↵ | | 15 | }↵
|
16 | return classpath.createPath();↵ | | 16 | return classpath.createPath();↵
|
17 | | | 17 |
|