[go: nahoru, domu]

blob: f2593bf2c1ca19e338172d7db8f3dc6e12e24531 [file] [log] [blame]
Name: google-java-format
URL: https://github.com/google/google-java-format
Version: 1.17.0
License: Apache 2.0
License File: LICENSE
Security Critical: no
Shipped: no
Description:
google-java-format is a program that reformats Java source code to comply with
Google Java Style (https://google.github.io/styleguide/javaguide.html).
Local Modifications:
- Customized import order to match Chromium style guide.
To see changes: diff -ur originals local_modifications
Update instructions:
- Find latest version available via https://ci.chromium.org/ui/p/chromium/builders/ci/3pp-linux-amd64-packager
- Update DEPS and the version in this README.chromium.
- Run gclient sync and verify locally that the formatter works:
1) Modify a Java file and including it in the patch
2) Run "git cl format"
3) Revert the Java file change
To update local modifications:
1) Create patch file:
diff -ur originals local_modifications > chromium.patch
2) Update source files:
curl -o originals/java/com/google/googlejavaformat/java/ImportOrderer.java 'https://raw.githubusercontent.com/google/google-java-format/master/core/src/main/java/com/google/googlejavaformat/java/ImportOrderer.java'
curl -o local_modifications/java/com/google/googlejavaformat/java/ImportOrderer.java 'https://raw.githubusercontent.com/google/google-java-format/master/core/src/main/java/com/google/googlejavaformat/java/ImportOrderer.java'
(cd local_modifications && patch -p1 < ../chromium.patch && rm ../chromium.patch)
3) Rebuild chromium-overrides.jar:
./recreate_chromium_overrides_jar.sh