diff options
author | Igor Fedorenko | 2012-11-18 03:54:18 +0000 |
---|---|---|
committer | Igor Fedorenko | 2012-11-18 04:20:40 +0000 |
commit | b6ab16ebe97f72b1a34f19af189376f2837f87a3 (patch) | |
tree | f95245dfc812800b3a5302a5b65e432d0e7f44a2 /org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java | |
parent | 294d65797e57d43243ccaf422aa142be8dfa2abf (diff) | |
download | m2e-core-b6ab16ebe97f72b1a34f19af189376f2837f87a3.tar.gz m2e-core-b6ab16ebe97f72b1a34f19af189376f2837f87a3.tar.xz m2e-core-b6ab16ebe97f72b1a34f19af189376f2837f87a3.zip |
394525 explicit configuration of project lifecycleMappingId
Introduced new ResolverConfiguration#lifecycleMappingId attribute.
If the attribute is not null, the ILifecycleMapping with specified
id will be used regardless of any other lifecycle mapping metadata
applicable to the project.
The new attribute is meant for m2e exploiters and is not and most
likely will not be exposed via user-accessible UI.
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java')
-rw-r--r-- | org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java index dc258ef0..c16083d6 100644 --- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java +++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java @@ -13,7 +13,6 @@ package org.eclipse.m2e.core.project; import java.io.Serializable; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; /** @@ -31,6 +30,8 @@ public class ResolverConfiguration implements Serializable { private String selectedProfiles = ""; //$NON-NLS-1$ + private String lifecycleMappingId; + public boolean shouldResolveWorkspaceProjects() { return this.resolveWorkspaceProjects; } @@ -90,4 +91,21 @@ public class ResolverConfiguration implements Serializable { return profiles; } + /** + * @since 1.3 + */ + public String getLifecycleMappingId() { + return lifecycleMappingId; + } + + /** + * Explicitly set project lifecycle mapping id. Non-null value takes precedence over id derived from lifecycle mapping + * metadata source, including project pom.xml and workspace preferences. + * + * @since 1.3 + */ + public void setLifecycleMappingId(String lifecycleMappingId) { + this.lifecycleMappingId = lifecycleMappingId; + } + } |