Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2011-11-07 19:22:35 +0000
committerIgor Fedorenko2011-12-21 22:51:29 +0000
commitb54eb3513fe7e2270ed4c8413c09a5d05b35b5fd (patch)
tree1cfe8360f6c7f832c0841f076f62de3c530dba7c /org.eclipse.m2e.launching
parent3ecc071ad0eb0950c0369613b20e1fce4fc35cd2 (diff)
downloadm2e-core-b54eb3513fe7e2270ed4c8413c09a5d05b35b5fd.tar.gz
m2e-core-b54eb3513fe7e2270ed4c8413c09a5d05b35b5fd.tar.xz
m2e-core-b54eb3513fe7e2270ed4c8413c09a5d05b35b5fd.zip
Bug 337353 : properly parse active and inactive profiles, used when building Maven requests
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.launching')
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java
index b704fde3..7a30696c 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java
@@ -230,9 +230,9 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
if(projectFacade != null) {
ResolverConfiguration configuration = projectFacade.getResolverConfiguration();
- String activeProfiles = configuration.getActiveProfiles();
- if(activeProfiles != null && activeProfiles.length() > 0) {
- workingCopy.setAttribute(MavenLaunchConstants.ATTR_PROFILES, activeProfiles);
+ String selectedProfiles = configuration.getSelectedProfiles();
+ if(selectedProfiles != null && selectedProfiles.length() > 0) {
+ workingCopy.setAttribute(MavenLaunchConstants.ATTR_PROFILES, selectedProfiles);
}
}
}

Back to the top