1 | void setSourcepath(Path sourcepath) {↵ | | 1 | void setBootclasspath(Path src) {↵
|
2 | if (compileSourcepath == null) {↵ | | 2 | if (bootclasspath == null) {↵
|
3 | compileSourcepath = sourcepath;↵ | | 3 | bootclasspath = src;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | compileSourcepath.append(sourcepath);↵ | | 5 | bootclasspath.append(src);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Gets the sourcepath to be used for this compilation.↵ | | 9 | * ↵
|
10 | * @return the source path↵ | | |
|
11 | */↵ | | |
|
12 | public Path getSourcepath() {↵ | | |
|
13 | return compileSourcepath;↵ | | |
|
14 | }↵ | | |
|
|
15 | /**↵ | | |
|
16 | * Adds a path to sourcepath.↵ | | 10 | Adds path to bootstrap class files.↵
|
17 | * @return a sourcepath to be configured↵ | | 11 | * @return a path to be configured.↵
|
18 | */↵ | | 12 | */↵
|
19 | public Path createSourcepath() {↵ | | 13 | public Path createBootclasspath() {↵
|
20 | if (compileSourcepath == null) {↵ | | 14 | if (bootclasspath == null) {↵
|
21 | compileSourcepath = new Path(getProject());↵ | | 15 | bootclasspath = new Path(getProject());↵
|
22 | }↵ | | 16 | }↵
|
23 | return compileSourcepath.createPath();↵ | | 17 | return bootclasspath.createPath();↵
|
24 | | | 18 |
|