Use ktfmt.sh wrapper for ktfmt hook

This CL makes the ktfmt hook use the bash wrapper introduced in
ag/I8746885396c7837a2a6b2a42dca780da290ed582 instead of directly
executing the ktfmt.jar, now that gLinux is not able to execute
JAR files directly anymore.

Bug: 342153000
Test: Manual, verified that the ktfmt hook was working
Flag: EXEMPT repo hook
Change-Id: Ib3baec68951bb185e79638b5b3003f8403816b19
This commit is contained in:
Jordan Demeulenaere
2024-06-13 11:20:06 +02:00
parent c4111f06ff
commit 3b7282e08c

View File

@@ -5,7 +5,7 @@ ktfmt = true
ktfmt = --kotlinlang-style
[Tool Paths]
ktfmt = ${REPO_ROOT}/prebuilts/build-tools/common/framework/ktfmt.jar
ktfmt = ${REPO_ROOT}/external/ktfmt/ktfmt.sh
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --config_xml tools/checkstyle.xml --sha ${PREUPLOAD_COMMIT}