1 | Path createClasspath() {↵ | | 1 | Path createBootclasspath() {↵
|
2 | if (compileClasspath == null) {↵ | | 2 | if (bootclasspath == null) {↵
|
3 | compileClasspath = new Path(getProject());↵ | | 3 | bootclasspath = new Path(getProject());↵
|
4 | }↵ | | 4 | }↵
|
5 | return compileClasspath.createPath();↵ | | 5 | return bootclasspath.createPath();↵
|
6 | }↵ | | 6 | }↵
|
|
7 | /**↵ | | 7 | /**↵
|
8 | * Adds a reference to a classpath defined elsewhere.↵ | | 8 | * Adds a reference to a classpath defined elsewhere.↵
|
9 | * @param r a reference to a classpath↵ | | 9 | * @param r a reference to a classpath↵
|
10 | */↵ | | 10 | */↵
|
11 | public void setClasspathRef(Reference r) {↵ | | 11 | public void setBootClasspathRef(Reference r) {↵
|
12 | createClasspath().setRefid(r);↵ | | 12 | createBootclasspath().setRefid(r);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | /**↵ | | 14 | /**↵
|
15 | * Sets the bootclasspath that will be used to compile the classes↵ | | 15 | * Sets the ↵
|
16 | * against.↵ | | |
|
17 | * @param bootclasspath a path to use as a boot class path (may be more↵ | | |
|
18 | * than one)↵ | | 16 | extension directories that will be used during the↵
|
| | | 17 | * compilation.↵
|
| | | 18 | * @param extdirs a path↵
|
19 | */↵ | | 19 | */↵
|
20 | public void setBootclasspath(Path bootclasspath) {↵ | | 20 | public void setExtdirs(Path extdirs) {↵
|
21 | if (this.bootclasspath == null) {↵ | | 21 | if (this.extdirs == null) {↵
|
22 | this.bootclasspath = bootclasspath;↵ | | 22 | this.extdirs = extdirs;↵
|
23 | } else {↵ | | 23 | } else {↵
|
24 | this.bootclasspath.append(bootclasspath);↵ | | 24 | this.extdirs.append(extdirs);↵
|
25 | }↵ | | 25 | }↵
|
26 | }↵ | | 26 | }↵
|
|
27 | /**↵ | | 27 | /**↵
|
28 | * Gets the bootclasspath that will be used to compile the classes↵ | | 28 | * Gets the ↵
|
29 | * against.↵ | | |
|
30 | * @return the boot↵ | | 29 | extension directories that will be used during the↵
|
| | | 30 | * compilation.↵
|
31 | path↵ | | 31 | * @return the extension directories as a path↵
|
32 | */↵ | | 32 | */↵
|
33 | public Path getBootclasspath() {↵ | | 33 | public Path getExtdirs() {↵
|
34 | return bootclasspath;↵ | | 34 | return extdirs;↵
|
35 | }↵ | | 35 | }↵
|
|
36 | /**↵ | | 36 | /**↵
|
37 | * Adds a path to the bootclasspath.↵ | | 37 | * Adds a path to extdirs.↵
|
38 | * @return a path to be configured↵ | | 38 | * @return a path to be configured↵
|
39 | */↵ | | 39 | */↵
|
40 | public Path createBootclasspath() {↵ | | 40 | public Path createExtdirs() {↵
|
41 | if (bootclasspath == null) {↵ | | 41 | if (extdirs == null) {↵
|
42 | bootclasspath = new Path(getProject());↵ | | 42 | extdirs = new Path(getProject());↵
|
43 | }↵ | | 43 | }↵
|
44 | return bootclasspath.createPath();↵ | | 44 | return extdirs.createPath();↵
|
45 | | | 45 |
|