Skip to content

Commit

Permalink
Merge pull request #56 from ethauvin/main
Browse files Browse the repository at this point in the history
Added javac options to specify the directory used to place generated source files.
  • Loading branch information
gbevin authored Oct 14, 2024
2 parents c6c9d32 + 3f60ed7 commit 6c2a9ac
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/main/java/rife/bld/operations/JavacOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,41 @@ public JavacOptions profile(String profile) {
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.
*
Expand Down

0 comments on commit 6c2a9ac

Please sign in to comment.