1 | void setClasspath(Path classpath) {↵ | | 1 | void setClasspath(Path classpath) {↵
|
2 | createClasspath().append(classpath);↵ | | 2 | createClasspath().append(classpath);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Set the optional classpath to the XSL processor↵ | | 5 | * Classpath to be used when searching for classes and resources.↵
|
6 | *↵ | | 6 | *↵
|
7 | * @return a path instance to be configured by the Ant core.↵ | | 7 | * @return an empty Path instance to be configured by Ant.↵
|
8 | */↵ | | 8 | */↵
|
9 | public Path createClasspath() {↵ | | 9 | public Path createClasspath() {↵
|
10 | if (classpath == null) {↵ | | 10 | if (this.classpath == null) {↵
|
11 | classpath = new Path(getProject());↵ | | 11 | this.classpath = new Path(getProject());↵
|
12 | }↵ | | 12 | }↵
|
13 | return classpath.createPath();↵ | | 13 | return this.classpath.createPath();↵
|
14 | }↵ | | 14 | }↵
|
|
15 | /**↵ | | 15 | /**↵
|
16 | * Set the reference to an optional classpath to the XSL processor↵ | | 16 | * Set the classpath by reference.↵
|
17 | *↵ | | 17 | *↵
|
18 | * @param r the id of the Ant path instance to act as the classpath↵ | | 18 | * @param r a Reference to a Path instance to be used as the classpath↵
|
19 | * for loading the XSL processor↵ | | 19 | * value.↵
|
20 | */↵ | | 20 | */↵
|
21 | public void setClasspathRef(Reference r) {↵ | | 21 | public void setClasspathRef(Reference r) {↵
|
22 | createClasspath().setRefid(r);↵ | | 22 | createClasspath().setRefid(r);↵
|
23 | | | 23 |
|