File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ Please ensure that you setup and configured the Google Java Format IntelliJ plug
2424
2525On Windows, to fix using the CLI, you can run the following command in the root directory of the project:
2626
27+ ``` bash
28+ 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 " {}" \;
29+ ```
30+
31+ Note that the ` .exe ` does not produce the same results - thus the following command does not work:
32+
2733``` bash
2834find . -name " *.java" -exec /c/Users/{username}/Downloads/google-java-format_windows-x86-64.exe -r -a --skip-reflowing-long-strings --skip-javadoc-formatting " {}" \;
2935```
You can’t perform that action at this time.
0 commit comments