1 | Path createClasspath() {↵ | | 1 | Path createClasspath() {↵
|
2 | if (classpath == null) {↵ | | 2 | if (classpath == null) {↵
|
3 | classpath = new Path(getProject());↵ | | 3 | classpath = new Path(getProject());↵
|
4 | }↵ | | 4 | }↵
|
5 | return classpath.createPath();↵ | | 5 | return classpath.createPath();↵
|
6 | }↵ | | 6 | }↵
|
|
7 | /**↵ | | 7 | /**↵
|
8 | * Adds a reference to a classpath defined elsewhere↵ | | 8 | * Adds a reference to a CLASSPATH defined elsewhere.↵
|
| | | 9 | *↵
|
9 | * @param r a reference to a classpath.↵ | | 10 | * @param r the reference to an instance defining the classpath.↵
|
10 | */↵ | | 11 | */↵
|
11 | public void setClasspathRef(Reference r) {↵ | | 12 | public void setClasspathRef(Reference r) {↵
|
12 | createClasspath().setRefid(r);↵ | | 13 | createClasspath().setRefid(r);↵
|
13 | }↵ | | 14 | }↵
|
|
14 | /**↵ | | 15 | /**↵
|
15 | * Get the classpath.↵ | | 16 | * ↵
|
16 | * @return the classpath.↵ | | |
|
17 | */↵ | | |
|
18 | public Path getClasspath() {↵ | | |
|
19 | return classpath;↵ | | |
|
20 | }↵ | | |
|
|
21 | /**↵ | | |
|
22 | * Set the classpath to be used to find this compiler adapter↵ | | 17 | Set the boot classpath to use.↵
|
| | | 18 | *↵
|
23 | * @param cp the compiler classpath.↵ | | 19 | * @param path the boot classpath.↵
|
24 | */↵ | | 20 | */↵
|
25 | public void setCompilerclasspath(Path cp) {↵ | | 21 | public void setBootclasspath(Path path) {↵
|
26 | if (compilerClasspath == null) {↵ | | 22 | if (bootclasspath == null) {↵
|
27 | compilerClasspath = cp;↵ | | 23 | bootclasspath = path;↵
|
28 | } else {↵ | | 24 | } else {↵
|
29 | compilerClasspath.append(cp);↵ | | 25 | bootclasspath.append(path);↵
|
30 | }↵ | | 26 | }↵
|
31 | }↵ | | 27 | }↵
|
|
32 | /**↵ | | 28 | /**↵
|
33 | * get the classpath used to find the compiler adapter↵ | | 29 | * ↵
|
34 | * @return the compiler classpath.↵ | | 30 | Create a Path to be configured with the boot classpath↵
|
35 | */↵ | | 31 | *↵
|
36 | public Path getCompilerclasspath() {↵ | | 32 | ↵
|
37 | return compilerClasspath;↵ | | |
|
38 | }↵ | | |
|
|
39 | /**↵ | | |
|
40 | * Support nested compiler classpath, used to locate compiler adapter↵ | | |
|
41 | * @return a path to be configured.↵ | | 33 | * @return a new Path instance to be configured with the boot classpath.↵
|
42 | */↵ | | 34 | */↵
|
43 | public Path createCompilerclasspath() {↵ | | 35 | public Path createBootclasspath() {↵
|
44 | if (compilerClasspath == null) {↵ | | 36 | if (bootclasspath == null) {↵
|
45 | compilerClasspath = new Path(getProject());↵ | | 37 | bootclasspath = new Path(getProject());↵
|
46 | }↵ | | 38 | }↵
|
47 | return compilerClasspath.createPath();↵ | | 39 | return bootclasspath.createPath();↵
|
48 | | | 40 |
|