1 | void setClasspath(Path classpath) {↵ | | 1 | void setClasspath(Path classpath) {↵
|
2 | if (isReference()) {↵ | | 2 | if (isReference()) {↵
|
3 | throw tooManyAttributes();↵ | | 3 | throw tooManyAttributes();↵
|
4 | }↵ | | 4 | }↵
|
5 | if (this.classpath == null) {↵ | | 5 | if (this.classpath == null) {↵
|
6 | this.classpath = classpath;↵ | | 6 | this.classpath = classpath;↵
|
7 | } else {↵ | | 7 | } else {↵
|
8 | this.classpath.append(classpath);↵ | | 8 | this.classpath.append(classpath);↵
|
9 | }↵ | | 9 | }↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * Set the classpath to load the FileNameMapper through (nested element).↵ | | 12 | * Set the classpath to load the FilterReader through (nested element).↵
|
13 | * @return a path object to be configured↵ | | 13 | * @return a classpath to be configured↵
|
14 | */↵ | | 14 | */↵
|
15 | public Path createClasspath() {↵ | | 15 | public Path createClasspath() {↵
|
16 | if (isReference()) {↵ | | 16 | if (isReference()) {↵
|
17 | throw noChildrenAllowed();↵ | | 17 | throw noChildrenAllowed();↵
|
18 | }↵ | | 18 | }↵
|
19 | if (this.classpath == null) {↵ | | 19 | if (this.classpath == null) {↵
|
20 | this.classpath = new Path(getProject());↵ | | 20 | this.classpath = new Path(getProject());↵
|
21 | }↵ | | 21 | }↵
|
22 | return this.classpath.createPath();↵ | | 22 | return this.classpath.createPath();↵
|
23 | }↵ | | 23 | }↵
|
|
| | | 24 | /**↵
|
| | | 25 | * Get the classpath.↵
|
| | | 26 | * @return the classpath↵
|
| | | 27 | */↵
|
| | | 28 | public Path getClasspath() {↵
|
| | | 29 | return classpath;↵
|
| | | 30 | }↵
|
|
24 | /**↵ | | 31 | /**↵
|
25 | * Set the classpath to load the FileNameMapper through via↵ | | 32 | * Set the classpath to load the FilterReader through via↵
|
26 | * reference (attribute).↵ | | 33 | * reference (attribute).↵
|
27 | * @param ref the reference to the FileNameMapper↵ | | 34 | * @param r a reference to a classpath↵
|
28 | */↵ | | 35 | */↵
|
29 | public void setClasspathRef(Reference ref) {↵ | | 36 | public void setClasspathRef(Reference r) {↵
|
30 | if (isReference()) {↵ | | 37 | if (isReference()) {↵
|
31 | throw tooManyAttributes();↵ | | 38 | throw tooManyAttributes();↵
|
32 | }↵ | | 39 | }↵
|
33 | createClasspath().setRefid(ref);↵ | | 40 | createClasspath().setRefid(r);↵
|
34 | | | 41 |
|