From 297fa4a1b5be10ce8ebad063cceb429cdbd824ff Mon Sep 17 00:00:00 2001 From: Israel Merljak Date: Wed, 8 May 2024 12:43:19 +0100 Subject: [PATCH] use suggested profile syntax Fixes issues with bash/zsh special meaning to ! symbol. Resolves #995 --- src/utils/mavenUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/mavenUtils.ts b/src/utils/mavenUtils.ts index 7dc6532b..743358a7 100644 --- a/src/utils/mavenUtils.ts +++ b/src/utils/mavenUtils.ts @@ -144,9 +144,9 @@ export async function executeInTerminal(options: { if (pomfile) { const project = MavenProjectManager.get(pomfile); const selectedIds = project?.profiles?.filter(p => p.selected === true)?.map(p => p.id) ?? []; - const unselectedIds = project?.profiles?.filter(p => p.selected === false)?.map(p => `!${p.id}`) ?? []; + const unselectedIds = project?.profiles?.filter(p => p.selected === false)?.map(p => `-${p.id}`) ?? []; if (selectedIds.length + unselectedIds.length > 0) { - profileOptions = "-P " + selectedIds.concat(unselectedIds).join(","); + profileOptions = "-P=" + selectedIds.concat(unselectedIds).join(","); } } const fullCommand: string = [