2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 00:07:12 -07: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:
Geert Bevin 2024-10-14 16:01:04 -04:00 committed by GitHub
commit 6c2a9acf1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -592,6 +592,41 @@ public class JavacOptions extends ArrayList<String> {
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.
*