public class ReplacementsMaven extends Object implements Replacements
The replacements which are based on the plug-in properties, the
MavenProject, the environment variables (see System.getenv())
and the system properties (see System.getProperties()).
If the value of a variable is requested by calling the
getValue(String) method the lookup of the variable is performed the
following way:
MavenProject properties (see
MavenProject.getProperties())? If yes, return the value.MavenProject as property? If yes,
return the value.null.
| Constructor and Description |
|---|
ReplacementsMaven(Map<Object,Object> pluginProperties,
org.apache.maven.project.MavenProject project,
org.apache.maven.settings.Settings settings,
Map<String,String> environment,
Map<Object,Object> systemProperties)
Creates replacements.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue(String name)
Returns the value for the variable with the specified name.
|
public ReplacementsMaven(Map<Object,Object> pluginProperties, org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, Map<String,String> environment, Map<Object,Object> systemProperties)
Creates replacements.
pluginProperties - The properties of the plug-in configuration.project - The Maven project.settings - The settings of the local Maven installation.environment - The environment variables.systemProperties - The system properties.IllegalArgumentException - If any of the parameters are null.public String getValue(String name) throws ReplacementException
ReplacementsReturns the value for the variable with the specified name.
getValue in interface Replacementsname - The name.null, if the variable is unknown.ReplacementException - If an error occurs while determine the value.Copyright © 2015–2019. All rights reserved.