From 762e0999883fed50b79a72c8c35b1593ef80f461 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 2 Oct 2024 00:15:29 -0700 Subject: [PATCH 1/2] Added javac options to specify the directory used to place generated source files. --- .../rife/bld/operations/JavacOptions.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) 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 * From 3f60ed78ef96bb42b34d4dad458a64b7fdc8a7b2 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 4 Oct 2024 10:34:55 -0700 Subject: [PATCH 2/2] Removed extra empty line --- src/main/java/rife/bld/operations/JavacOptions.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/rife/bld/operations/JavacOptions.java b/src/main/java/rife/bld/operations/JavacOptions.java index cdc61fb..2a85807 100644 --- a/src/main/java/rife/bld/operations/JavacOptions.java +++ b/src/main/java/rife/bld/operations/JavacOptions.java @@ -637,7 +637,6 @@ public class JavacOptions extends ArrayList { return this; } - /** * Override location of upgradeable modules *