1 | void setClasspath(Path cp) {↵ | | 1 | void setClasspath(Path src) {↵
|
2 | if (classpath == null) {↵ | | 2 | if (classpath == null) {↵
|
3 | classpath = cp;↵ | | 3 | classpath = src;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | classpath.append(cp);↵ | | 5 | classpath.append(src);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Adds a path to the classpath.↵ | | 9 | * Path to use for classpath.↵
|
10 | * @return a path to be configured.↵ | | 10 | * @return a path to be configured.↵
|
11 | */↵ | | 11 | */↵
|
12 | public Path createClasspath() {↵ | | 12 | public Path createClasspath() {↵
|
13 | if (classpath == null) {↵ | | 13 | if (classpath == null) {↵
|
14 | classpath = new Path(getProject());↵ | | 14 | classpath = new Path(getProject());↵
|
15 | }↵ | | 15 | }↵
|
16 | return classpath.createPath();↵ | | 16 | return classpath.createPath();↵
|
17 | }↵ | | 17 | }↵
|
|
18 | /**↵ | | 18 | /**↵
|
19 | * Adds a reference to a classpath defined elsewhere↵ | | 19 | * Adds a reference to a classpath defined elsewhere.↵
|
20 | * @param r a reference to a classpath.↵ | | 20 | * @param r a reference to a classpath.↵
|
| | | 21 | * @todo this needs to be documented in the HTML docs.↵
|
21 | */↵ | | 22 | */↵
|
22 | public void setClasspathRef(Reference r) {↵ | | 23 | public void setClasspathRef(Reference r) {↵
|
23 | createClasspath().setRefid(r);↵ | | 24 | createClasspath().setRefid(r);↵
|
24 | }↵ | | 25 | }↵
|
|
25 | /**↵ | | 26 | /**↵
|
26 | * Get the classpath.↵ | | 27 | * The classpath to use.↵
|
27 | * @return the classpath.↵ | | 28 | * @return the classpath.↵
|
| | | 29 | * @since Ant 1.6.3↵
|
28 | */↵ | | 30 | */↵
|
29 | public Path getClasspath() {↵ | | 31 | public Path getClasspath() {↵
|
30 | return classpath;↵ | | 32 | return classpath;↵
|
31 | }↵ | | 33 | }↵
|
|
32 | /**↵ | | 34 | /**↵
|
33 | * Set the classpath to be used to find this compiler adapter↵ | | 35 | * location of bootstrap class files.↵
|
34 | * @param cp the compiler classpath.↵ | | 36 | * @param src the bootstrap classpath.↵
|
35 | */↵ | | 37 | */↵
|
36 | public void setCompilerclasspath(Path cp) {↵ | | 38 | public void setBootclasspath(Path src) {↵
|
37 | if (compilerClasspath == null) {↵ | | 39 | if (bootclasspath == null) {↵
|
38 | compilerClasspath = cp;↵ | | 40 | bootclasspath = src;↵
|
39 | } else {↵ | | 41 | } else {↵
|
40 | compilerClasspath.append(cp);↵ | | 42 | bootclasspath.append(src);↵
|
41 | }↵ | | 43 | }↵
|
42 | }↵ | | 44 | }↵
|
|
43 | /**↵ | | 45 | /**↵
|
44 | * get the classpath used to find the compiler adapter↵ | | 46 | * ↵
|
45 | * @return the compiler classpath.↵ | | |
|
46 | */↵ | | |
|
47 | public Path getCompilerclasspath() {↵ | | |
|
48 | return compilerClasspath;↵ | | |
|
49 | }↵ | | |
|
|
50 | /**↵ | | |
|
51 | * Support nested compiler classpath, used to locate compiler adapter↵ | | 47 | Adds path to bootstrap class files.↵
|
52 | * @return a path to be configured.↵ | | 48 | * @return a path to be configured.↵
|
53 | */↵ | | 49 | */↵
|
54 | public Path createCompilerclasspath() {↵ | | 50 | public Path createBootclasspath() {↵
|
55 | if (compilerClasspath == null) {↵ | | 51 | if (bootclasspath == null) {↵
|
56 | compilerClasspath = new Path(getProject());↵ | | 52 | bootclasspath = new Path(getProject());↵
|
57 | }↵ | | 53 | }↵
|
58 | return compilerClasspath.createPath();↵ | | 54 | return bootclasspath.createPath();↵
|
59 | | | 55 |
|