chromium/third_party/google-java-format/recreate_chromium_overrides_jar.sh

#!/bin/bash
cd $(dirname "$0")
mkdir tmp
../jdk/current/bin/javac \
    -d tmp \
    --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
    -cp google-java-format.jar \
    -source 11 \
    -target 11 \
    local_modifications/java/com/google/googlejavaformat/java/*.java
rm chromium-overrides.jar
(cd tmp && zip -rD0 ../chromium-overrides.jar *)
rm -r tmp