public class MavenPropertiesImporter extends Object implements SpecialVariableProcessor
Constructor and Description |
---|
MavenPropertiesImporter(PreprocessorContext context,
org.apache.maven.project.MavenProject project,
boolean logAddedProperties) |
Modifier and Type | Method and Description |
---|---|
Value |
getVariable(String varName,
PreprocessorContext context)
Get the value for the variable
|
String[] |
getVariableNames()
Get all variable names allowed by the processor as an array, all names must
be in lower case
|
void |
setVariable(String varName,
Value value,
PreprocessorContext context)
Set a value to the variable
|
public MavenPropertiesImporter(PreprocessorContext context, org.apache.maven.project.MavenProject project, boolean logAddedProperties)
@MustNotContainNull public String[] getVariableNames()
SpecialVariableProcessor
getVariableNames
in interface SpecialVariableProcessor
public Value getVariable(String varName, PreprocessorContext context)
SpecialVariableProcessor
getVariable
in interface SpecialVariableProcessor
varName
- the variable name, must not be nullcontext
- the preprocessor context, it can be nullpublic void setVariable(String varName, Value value, PreprocessorContext context)
SpecialVariableProcessor
setVariable
in interface SpecialVariableProcessor
varName
- the variable name, must not be nullvalue
- the value to be set to the variable, must not be nullcontext
- the preprocessor context, it can be nullCopyright © 2011–2021 Igor Maznitsa. All rights reserved.