File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,12 @@ Background: [OpenRewrite](https://docs.openrewrite.org/) is an automated refacto
2020
2121### Failing Google Java Format (AOSP) tests
2222
23- Please ensure that you setup and configured the Google Java Format IntelliJ plugin correctly.
23+ Please ensure that you set up and configured the Google Java Format IntelliJ plugin correctly.
2424
25- On Windows, to fix using the CLI, you can run the following command in the root directory of the project:
25+ It is also possible to run it on the command line.
26+ Download the bineary from the [ Google Java Format project] ( https://github.com/google/google-java-format ) .
27+
28+ On Windows, to fix using the command line, you can run the following command in the root directory of the project:
2629
2730``` bash
2831find . -name " *.java" -exec /c/Users/{username}/Downloads/google-java-format_windows-x86-64.exe -r -a --skip-reflowing-long-strings --skip-javadoc-formatting " {}" \;
@@ -31,7 +34,7 @@ find . -name "*.java" -exec /c/Users/{username}/Downloads/google-java-format_win
3134On Linux, it is similar to following call:
3235
3336``` bash
34- find . -name " *.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/google-java-format-1.24.0-all -deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting " {}" \;
37+ find . -name " *.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/` google-java-format-1.24.0-al ` l -deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting " {}" \;
3538```
3639
3740Note that the ` .exe ` does not produce the same results - thus the following command does not work:
You can’t perform that action at this time.
0 commit comments