mirror of
https://github.com/rife2/bld
synced 2025-12-20 16:48:38 +01:00
Merge pull request #56 from ethauvin/main
Added javac options to specify the directory used to place generated source files.
This commit is contained in:
commit
6c2a9acf1c
|
|
@ -592,6 +592,41 @@ public class JavacOptions extends ArrayList<String> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the directory used to place the generated source files.
|
||||||
|
*
|
||||||
|
* @param path the source output directory path
|
||||||
|
* @return the list of options
|
||||||
|
* @since 2.1.1
|
||||||
|
*/
|
||||||
|
public JavacOptions sourceOutput(String path) {
|
||||||
|
add("-s");
|
||||||
|
add(path);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the directory used to place the generated source files.
|
||||||
|
*
|
||||||
|
* @param path the source output directory path
|
||||||
|
* @return the list of options
|
||||||
|
* @since 2.1.1
|
||||||
|
*/
|
||||||
|
public JavacOptions sourceOutput(File path) {
|
||||||
|
return sourceOutput(path.getAbsolutePath());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the directory used to place the generated source files.
|
||||||
|
*
|
||||||
|
* @param path the source output directory path
|
||||||
|
* @return the list of options
|
||||||
|
* @since 2.1.1
|
||||||
|
*/
|
||||||
|
public JavacOptions sourceOutput(Path path) {
|
||||||
|
return sourceOutput(path.toFile());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override location of system modules. Option is <jdk> or none.
|
* Override location of system modules. Option is <jdk> or none.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue