Class DefaultProfileActivationContext
java.lang.Object
org.apache.maven.model.profile.DefaultProfileActivationContext
- All Implemented Interfaces:
- ProfileActivationContext
@Deprecated(since="4.0.0")
public class DefaultProfileActivationContext
extends Object
implements ProfileActivationContext
Deprecated.
Describes the environmental context used to determine the activation status of profiles.
- 
Field SummaryFields inherited from interface org.apache.maven.model.profile.ProfileActivationContextPROPERTY_NAME_PACKAGING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.Gets the identifiers of those profiles that should be activated by explicit demand.Deprecated.Gets the identifiers of those profiles that should be deactivated by explicit demand.Deprecated.Gets the base directory of the current project (if any).Deprecated.Gets current calculated project propertiesDeprecated.Gets the system properties to use for interpolation and profile activation.Deprecated.Gets the user properties to use for interpolation and profile activation.setActiveProfileIds(List<String> activeProfileIds) Deprecated.Sets the identifiers of those profiles that should be activated by explicit demand.setInactiveProfileIds(List<String> inactiveProfileIds) Deprecated.Sets the identifiers of those profiles that should be deactivated by explicit demand.setProjectDirectory(File projectDirectory) Deprecated.Sets the base directory of the current project.setProjectProperties(Properties projectProperties) Deprecated.setSystemProperties(Map<String, String> systemProperties) Deprecated.Sets the system properties to use for interpolation and profile activation.setSystemProperties(Properties systemProperties) Deprecated.Sets the system properties to use for interpolation and profile activation.setUserProperties(Map<String, String> userProperties) Deprecated.Sets the user properties to use for interpolation and profile activation.setUserProperties(Properties userProperties) Deprecated.Sets the user properties to use for interpolation and profile activation.
- 
Constructor Details- 
DefaultProfileActivationContextpublic DefaultProfileActivationContext()Deprecated.
 
- 
- 
Method Details- 
getActiveProfileIdsDeprecated.Description copied from interface:ProfileActivationContextGets the identifiers of those profiles that should be activated by explicit demand.- Specified by:
- getActiveProfileIdsin interface- ProfileActivationContext
- Returns:
- The identifiers of those profiles to activate, never null.
 
- 
setActiveProfileIdsDeprecated.Sets the identifiers of those profiles that should be activated by explicit demand.- Parameters:
- activeProfileIds- The identifiers of those profiles to activate, may be- null.
- Returns:
- This context, never null.
 
- 
getInactiveProfileIdsDeprecated.Description copied from interface:ProfileActivationContextGets the identifiers of those profiles that should be deactivated by explicit demand.- Specified by:
- getInactiveProfileIdsin interface- ProfileActivationContext
- Returns:
- The identifiers of those profiles to deactivate, never null.
 
- 
setInactiveProfileIdsDeprecated.Sets the identifiers of those profiles that should be deactivated by explicit demand.- Parameters:
- inactiveProfileIds- The identifiers of those profiles to deactivate, may be- null.
- Returns:
- This context, never null.
 
- 
getSystemPropertiesDeprecated.Description copied from interface:ProfileActivationContextGets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Specified by:
- getSystemPropertiesin interface- ProfileActivationContext
- Returns:
- The execution properties, never null.
 
- 
setSystemPropertiesDeprecated.Sets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Parameters:
- systemProperties- The system properties, may be- null.
- Returns:
- This context, never null.
 
- 
setSystemPropertiesDeprecated.Sets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Parameters:
- systemProperties- The system properties, may be- null.
- Returns:
- This context, never null.
 
- 
getUserPropertiesDeprecated.Description copied from interface:ProfileActivationContextGets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=valueparameter on the command line.- Specified by:
- getUserPropertiesin interface- ProfileActivationContext
- Returns:
- The user properties, never null.
 
- 
setUserPropertiesDeprecated.Sets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=valueparameter on the command line.- Parameters:
- userProperties- The user properties, may be- null.
- Returns:
- This context, never null.
 
- 
setUserPropertiesDeprecated.Sets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=valueparameter on the command line.- Parameters:
- userProperties- The user properties, may be- null.
- Returns:
- This context, never null.
 
- 
getProjectDirectoryDeprecated.Description copied from interface:ProfileActivationContextGets the base directory of the current project (if any).- Specified by:
- getProjectDirectoryin interface- ProfileActivationContext
- Returns:
- The base directory of the current project or nullif none.
 
- 
setProjectDirectoryDeprecated.Sets the base directory of the current project.- Parameters:
- projectDirectory- The base directory of the current project, may be- nullif profile activation happens in the context of metadata retrieval rather than project building.
- Returns:
- This context, never null.
 
- 
getProjectPropertiesDeprecated.Description copied from interface:ProfileActivationContextGets current calculated project properties- Specified by:
- getProjectPropertiesin interface- ProfileActivationContext
- Returns:
- The project properties, never null.
 
- 
setProjectPropertiesDeprecated.
 
- 
org.apache.maven.api.services.ModelBuilderinstead