From ac5a61641c2efd69f5be2bc6484ef0589b606084 Mon Sep 17 00:00:00 2001 From: Israel Merljak <17605203+imerljak@users.noreply.github.com> Date: Tue, 12 Nov 2024 04:54:05 +0000 Subject: [PATCH] use suggested profile syntax (#1031) Fixes issues with bash/zsh special meaning to ! symbol. Resolves #995 Co-authored-by: Jinbo Wang --- 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 = [