1 | void setCompilerclasspath(Path cp) {↵ | | 1 | void setSourcepath(Path src) {↵
|
2 | if (compilerClasspath == null) {↵ | | 2 | if (sourcePath == null) {↵
|
3 | compilerClasspath = cp;↵ | | 3 | sourcePath = src;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | compilerClasspath.append(cp);↵ | | 5 | sourcePath.append(src);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * get the classpath used to find the compiler adapter↵ | | 9 | * ↵
|
10 | * @return the compiler classpath.↵ | | |
|
11 | */↵ | | |
|
12 | public Path getCompilerclasspath() {↵ | | |
|
13 | return compilerClasspath;↵ | | |
|
14 | }↵ | | |
|
|
15 | /**↵ | | |
|
16 | * Support nested compiler classpath, used to locate compiler adapter↵ | | |
|
17 | * @return a path to be configu↵ | | 10 | Create a path to be configured with the locations of the source↵
|
| | | 11 | * files.↵
|
| | | 12 | *↵
|
18 | red.↵ | | 13 | * @return a new Path instance to be configured by the Ant core.↵
|
19 | */↵ | | 14 | */↵
|
20 | public Path createCompilerclasspath() {↵ | | 15 | public Path createSourcepath() {↵
|
21 | if (compilerClasspath == null) {↵ | | 16 | if (sourcePath == null) {↵
|
22 | compilerClasspath = new Path(getProject());↵ | | 17 | sourcePath = new Path(getProject());↵
|
23 | }↵ | | 18 | }↵
|
24 | return compilerClasspath.createPath();↵ | | 19 | return sourcePath.createPath();↵
|
25 | | | 20 |
|