From c99d7e35a1694aae70920f07d851ba08f1d75fd4 Mon Sep 17 00:00:00 2001 From: Edbert Chan Date: Wed, 10 Apr 2024 17:13:17 -0700 Subject: [PATCH] update --- src/cli/AndroidLintRunner.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/AndroidLintRunner.kt b/src/cli/AndroidLintRunner.kt index eb814b8..412d78c 100644 --- a/src/cli/AndroidLintRunner.kt +++ b/src/cli/AndroidLintRunner.kt @@ -58,13 +58,15 @@ internal class AndroidLintRunner { ) // Run Android Lint + val androidCacheFolder = workingDirectory.resolve("android-cache") + Files.createDirectory(androidCacheFolder) val invoker = AndroidLintCliInvoker.createUsingJars(jars = arrayOf(args.androidLintCliTool)) val exitCode = invokeAndroidLintCLI( invoker = invoker, actionArgs = args, projectFilePath = projectFile, baselineFilePath = baselineFile, - cacheDirectoryPath = workingDirectory.resolve("android-cache"), + cacheDirectoryPath = androidCacheFolder, ) // Pure hacks to strip the relative paths and exec roots out of the file