|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.model.profile.DefaultProfileActivationContext
public class DefaultProfileActivationContext
Describes the environmental context used to determine the activation status of profiles.
| Constructor Summary | |
|---|---|
DefaultProfileActivationContext()
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getActiveProfileIds()
Gets the identifiers of those profiles that should be activated by explicit demand. |
java.util.List<java.lang.String> |
getInactiveProfileIds()
Gets the identifiers of those profiles that should be deactivated by explicit demand. |
java.io.File |
getProjectDirectory()
Gets the base directory of the current project (if any). |
java.util.Properties |
getSystemProperties()
Gets the system properties to use for interpolation and profile activation. |
java.util.Properties |
getUserProperties()
Gets the user properties to use for interpolation and profile activation. |
DefaultProfileActivationContext |
setActiveProfileIds(java.util.List<java.lang.String> activeProfileIds)
Sets the identifiers of those profiles that should be activated by explicit demand. |
DefaultProfileActivationContext |
setInactiveProfileIds(java.util.List<java.lang.String> inactiveProfileIds)
Sets the identifiers of those profiles that should be deactivated by explicit demand. |
ProfileActivationContext |
setProjectDirectory(java.io.File projectDirectory)
Sets the base directory of the current project. |
DefaultProfileActivationContext |
setSystemProperties(java.util.Properties systemProperties)
Sets the system properties to use for interpolation and profile activation. |
DefaultProfileActivationContext |
setUserProperties(java.util.Properties userProperties)
Sets the user properties to use for interpolation and profile activation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultProfileActivationContext()
| Method Detail |
|---|
public java.util.List<java.lang.String> getActiveProfileIds()
ProfileActivationContext
getActiveProfileIds in interface ProfileActivationContextnull.public DefaultProfileActivationContext setActiveProfileIds(java.util.List<java.lang.String> activeProfileIds)
ProfileActivationContext
setActiveProfileIds in interface ProfileActivationContextactiveProfileIds - The identifiers of those profiles to activate, may be null.
null.public java.util.List<java.lang.String> getInactiveProfileIds()
ProfileActivationContext
getInactiveProfileIds in interface ProfileActivationContextnull.public DefaultProfileActivationContext setInactiveProfileIds(java.util.List<java.lang.String> inactiveProfileIds)
ProfileActivationContext
setInactiveProfileIds in interface ProfileActivationContextinactiveProfileIds - The identifiers of those profiles to deactivate, may be null.
null.public java.util.Properties getSystemProperties()
ProfileActivationContextSystem.getProperties() and environment variables.
getSystemProperties in interface ProfileActivationContextnull.public DefaultProfileActivationContext setSystemProperties(java.util.Properties systemProperties)
ProfileActivationContextSystem.getProperties() and environment variables.
setSystemProperties in interface ProfileActivationContextsystemProperties - The execution properties, may be null.
null.public java.util.Properties getUserProperties()
ProfileActivationContext-Dkey=value parameter on the command
line.
getUserProperties in interface ProfileActivationContextnull.public DefaultProfileActivationContext setUserProperties(java.util.Properties userProperties)
ProfileActivationContext-Dkey=value parameter on the command
line.
setUserProperties in interface ProfileActivationContextuserProperties - The user properties, may be null.
null.public java.io.File getProjectDirectory()
ProfileActivationContext
getProjectDirectory in interface ProfileActivationContextnull if none.public ProfileActivationContext setProjectDirectory(java.io.File projectDirectory)
ProfileActivationContext
setProjectDirectory in interface ProfileActivationContextprojectDirectory - The base directory of the current project, may be null if profile activation
happens in the context of metadata retrieval rather than project building.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||