From 3b7282e08c139714299347ed778b1c82d12baac9 Mon Sep 17 00:00:00 2001 From: Jordan Demeulenaere Date: Thu, 13 Jun 2024 11:20:06 +0200 Subject: [PATCH] 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 --- PREUPLOAD.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index ff97b22e4e..9051ca8562 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -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}