From a66540b30e9ff071338add9e432576ea94a82f38 Mon Sep 17 00:00:00 2001 From: keegan morrissey Date: Tue, 13 Jun 2023 15:17:22 -0500 Subject: [PATCH] Fixing gradleCmd to allow args to have spaces similarly related to mvn fix on PR 921 --- buildtools/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/cli.go b/buildtools/cli.go index 8ef8f3c8d..31aff5d0c 100644 --- a/buildtools/cli.go +++ b/buildtools/cli.go @@ -497,7 +497,7 @@ func GradleCmd(c *cli.Context) (err error) { return err } printDeploymentView := log.IsStdErrTerminal() - gradleCmd := gradle.NewGradleCommand().SetConfiguration(buildConfiguration).SetTasks(strings.Join(filteredGradleArgs, " ")).SetConfigPath(configFilePath).SetThreads(threads).SetDetailedSummary(detailedSummary || printDeploymentView).SetXrayScan(xrayScan).SetScanOutputFormat(scanOutputFormat) + gradleCmd := gradle.NewGradleCommand().SetConfiguration(buildConfiguration).SetTasks(filteredGradleArgs).SetConfigPath(configFilePath).SetThreads(threads).SetDetailedSummary(detailedSummary || printDeploymentView).SetXrayScan(xrayScan).SetScanOutputFormat(scanOutputFormat) err = commands.Exec(gradleCmd) result := gradleCmd.Result() defer cliutils.CleanupResult(result, &err)