diff --git a/src/main/java/rife/bld/operations/JavacOptions.java b/src/main/java/rife/bld/operations/JavacOptions.java index cd2d752..4c6c208 100644 --- a/src/main/java/rife/bld/operations/JavacOptions.java +++ b/src/main/java/rife/bld/operations/JavacOptions.java @@ -592,6 +592,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. *