Skip to content

Commit

Permalink
Accept (and ignore) JavaBuilder --post_processor flags
Browse files Browse the repository at this point in the history
Follow-up to aabe1f4

PiperOrigin-RevId: 640225611
  • Loading branch information
cushon authored and Javac Team committed Jun 4, 2024
1 parent 22174aa commit a991d69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions java/com/google/turbine/options/TurbineOptionsParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ private static void parse(TurbineOptions.Builder builder, Deque<String> argument
case "--experimental_fix_deps_tool":
case "--strict_java_deps":
case "--native_header_output":
case "--post_processor":
// accepted (and ignored) for compatibility with JavaBuilder command lines
readOne(next, argumentDeque);
break;
Expand Down
4 changes: 3 additions & 1 deletion javatests/com/google/turbine/options/TurbineOptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ public void javaBuilderCompatibility() throws Exception {
"ignored",
"--native_header_output",
"ignored",
"--compress_jar")));
"--compress_jar",
"--post_processor",
"jacoco")));
assertThat(options.outputDeps()).hasValue("output_deps.proto");
assertThat(options.gensrcOutput()).hasValue("generated_sources.jar");
}
Expand Down

0 comments on commit a991d69

Please sign in to comment.