From 62bee824e4a4ef5cb158c087a16221de434a68c2 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 15 Mar 2024 10:14:53 +0100 Subject: [PATCH] fix(gradle-inspector): Use ORT's fixed-up user home directory Align with the code from the "legacy" Gradle package manager implementation. Signed-off-by: Sebastian Schuberth --- .../gradle-inspector/src/main/kotlin/GradleInspector.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt b/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt index e699cbe0de89e..904e3a7e5e9a0 100644 --- a/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt +++ b/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt @@ -177,7 +177,7 @@ class GradleInspector( .setJvmArguments(jvmArgs) .setStandardOutput(stdout) .setStandardError(stderr) - .withArguments("--init-script", initScriptFile.path) + .withArguments("-Duser.home=${Os.userHomeDirectory}", "--init-script", initScriptFile.path) .get() if (stdout.size() > 0) {