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