diff --git a/src/main/java/rife/bld/operations/JavacOptions.java b/src/main/java/rife/bld/operations/JavacOptions.java index 3b2b1bf..cdc61fb 100644 --- a/src/main/java/rife/bld/operations/JavacOptions.java +++ b/src/main/java/rife/bld/operations/JavacOptions.java @@ -590,6 +590,41 @@ public class JavacOptions extends ArrayList { 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. * @@ -602,6 +637,7 @@ public class JavacOptions extends ArrayList { return this; } + /** * Override location of upgradeable modules *