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 | * @param r a reference to a classpath.↵ | | 9 | * @param r a reference to a classpath.↵
|
| | | 10 | * @todo this needs to be documented in the HTML docs.↵
|
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 | * The classpath to use.↵
|
16 | * @return the classpath.↵ | | 17 | * @return the classpath.↵
|
| | | 18 | * @since Ant 1.6.3↵
|
17 | */↵ | | 19 | */↵
|
18 | public Path getClasspath() {↵ | | 20 | public Path getClasspath() {↵
|
19 | return classpath;↵ | | 21 | return classpath;↵
|
20 | }↵ | | 22 | }↵
|
|
21 | /**↵ | | 23 | /**↵
|
22 | * Set the classpath to be used to find this compiler adapter↵ | | 24 | * location of bootstrap class files.↵
|
23 | * @param cp the compiler classpath.↵ | | 25 | * @param src the bootstrap classpath.↵
|
24 | */↵ | | 26 | */↵
|
25 | public void setCompilerclasspath(Path cp) {↵ | | 27 | public void setBootclasspath(Path src) {↵
|
26 | if (compilerClasspath == null) {↵ | | 28 | if (bootclasspath == null) {↵
|
27 | compilerClasspath = cp;↵ | | 29 | bootclasspath = src;↵
|
28 | } else {↵ | | 30 | } else {↵
|
29 | compilerClasspath.append(cp);↵ | | 31 | bootclasspath.append(src);↵
|
30 | }↵ | | 32 | }↵
|
31 | }↵ | | 33 | }↵
|
|
32 | /**↵ | | 34 | /**↵
|
33 | * get the classpath used to find the compiler adapter↵ | | 35 | * ↵
|
34 | * @return the compiler classpath.↵ | | |
|
35 | */↵ | | |
|
36 | public Path getCompilerclasspath() {↵ | | |
|
37 | return compilerClasspath;↵ | | |
|
38 | }↵ | | |
|
|
39 | /**↵ | | |
|
40 | * Support nested compiler classpath, used to locate compiler adapter↵ | | 36 | Adds path to bootstrap class files.↵
|
41 | * @return a path to be configured.↵ | | 37 | * @return a path to be configured.↵
|
42 | */↵ | | 38 | */↵
|
43 | public Path createCompilerclasspath() {↵ | | 39 | public Path createBootclasspath() {↵
|
44 | if (compilerClasspath == null) {↵ | | 40 | if (bootclasspath == null) {↵
|
45 | compilerClasspath = new Path(getProject());↵ | | 41 | bootclasspath = new Path(getProject());↵
|
46 | }↵ | | 42 | }↵
|
47 | return compilerClasspath.createPath();↵ | | 43 | return bootclasspath.createPath();↵
|
48 | | | 44 |
|