1 | void setClasspath(Path cp) {↵ | | 1 | void setSourcepath(Path sourcepath) {↵
|
2 | if (classpath == null) {↵ | | 2 | if (compileSourcepath == null) {↵
|
3 | classpath = cp;↵ | | 3 | compileSourcepath = sourcepath;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | classpath.append(cp);↵ | | 5 | compileSourcepath.append(sourcepath);↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Adds a path to the class↵ | | 9 | * Gets the sourcepath to be used for this compilation.↵
|
| | | 10 | * @return the source path↵
|
| | | 11 | */↵
|
| | | 12 | public Path getSourcepath() {↵
|
| | | 13 | return compileSourcepath;↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
10 | path.↵ | | 16 | * Adds a path to sourcepath.↵
|
11 | * @return a path to be configured.↵ | | 17 | * @return a sourcepath to be configured↵
|
12 | */↵ | | 18 | */↵
|
13 | public Path createClasspath() {↵ | | 19 | public Path createSourcepath() {↵
|
14 | if (classpath == null) {↵ | | 20 | if (compileSourcepath == null) {↵
|
15 | classpath = new Path(getProject());↵ | | 21 | compileSourcepath = new Path(getProject());↵
|
16 | }↵ | | 22 | }↵
|
17 | return classpath.createPath();↵ | | 23 | return compileSourcepath.createPath();↵
|
18 | | | 24 |
|