2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 08:17:11 -07:00

Added javac options to specify the directory used to place generated source files.

This commit is contained in:
Erik C. Thauvin 2024-10-02 00:15:29 -07:00
parent 9941fc0d10
commit 762e099988
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -590,6 +590,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 &lt;jdk&gt; or none. * Override location of system modules. Option is &lt;jdk&gt; or none.
* *
@ -602,6 +637,7 @@ public class JavacOptions extends ArrayList<String> {
return this; return this;
} }
/** /**
* Override location of upgradeable modules * Override location of upgradeable modules
* *