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