Skip to content

Commit

Permalink
Added javac options to specify the directory used to place generated …
Browse files Browse the repository at this point in the history
…source files.
  • Loading branch information
ethauvin committed Oct 2, 2024
1 parent 9941fc0 commit 762e099
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/main/java/rife/bld/operations/JavacOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,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 All @@ -602,6 +637,7 @@ public JavacOptions system(String option) {
return this;
}


/**
* Override location of upgradeable modules
*
Expand Down

0 comments on commit 762e099

Please sign in to comment.