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 a↵
|
10 | * @todo this needs to be documented in the HTML docs.↵ | | 11 | n instance defining the classpath.↵
|
11 | */↵ | | 12 | */↵
|
12 | public void setClasspathRef(Reference r) {↵ | | 13 | public void setClasspathRef(Reference r) {↵
|
13 | createClasspath().setRefid(r);↵ | | 14 | createClasspath().setRefid(r);↵
|
14 | }↵ | | 15 | }↵
|
|
15 | /**↵ | | 16 | /**↵
|
16 | * The classpath to use.↵ | | 17 | * ↵
|
17 | * @return the classpath.↵ | | |
|
18 | * @since Ant 1.6.3↵ | | |
|
19 | */↵ | | |
|
20 | public Path getClasspath() {↵ | | |
|
21 | return classpath;↵ | | |
|
22 | }↵ | | |
|
|
| | | 18 | Set the boot classpath to use.↵
|
23 | /**↵ | | 19 | *↵
|
24 | * location of bootstrap class files.↵ | | |
|
25 | * @param src the bootstrap classpath.↵ | | 20 | * @param path the boot classpath.↵
|
26 | */↵ | | 21 | */↵
|
27 | public void setBootclasspath(Path src) {↵ | | 22 | public void setBootclasspath(Path path) {↵
|
28 | if (bootclasspath == null) {↵ | | 23 | if (bootclasspath == null) {↵
|
29 | bootclasspath = src;↵ | | 24 | bootclasspath = path;↵
|
30 | } else {↵ | | 25 | } else {↵
|
31 | bootclasspath.append(src);↵ | | 26 | bootclasspath.append(path);↵
|
32 | }↵ | | 27 | }↵
|
33 | }↵ | | 28 | }↵
|
|
34 | /**↵ | | 29 | /**↵
|
35 | * Adds path to bootstrap class files.↵ | | 30 | * ↵
|
36 | * @return a path to be configured↵ | | 31 | Create a Path to be configured with the boot classpath↵
|
| | | 32 | *↵
|
37 | .↵ | | 33 | * @return a new Path instance to be configured with the boot classpath.↵
|
38 | */↵ | | 34 | */↵
|
39 | public Path createBootclasspath() {↵ | | 35 | public Path createBootclasspath() {↵
|
40 | if (bootclasspath == null) {↵ | | 36 | if (bootclasspath == null) {↵
|
41 | bootclasspath = new Path(getProject());↵ | | 37 | bootclasspath = new Path(getProject());↵
|
42 | }↵ | | 38 | }↵
|
43 | return bootclasspath.createPath();↵ | | 39 | return bootclasspath.createPath();↵
|
44 | | | 40 |
|