java.lang.Object
org.basepom.mojo.propertyhelper.MacroField
- All Implemented Interfaces:
PropertyElement
-
Constructor Summary
ConstructorDescriptionMacroField
(MacroDefinition macroDefinition, ValueProvider valueProvider, AbstractPropertyHelperMojo mojo) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<MacroField>
createMacros
(ValueCache valueCache, MacroDefinition[] macroDefinitions, AbstractPropertyHelperMojo mojo) The name of the property element.The value of the property.boolean
isExport()
True if the value of this element should be exposed as a maven property.toString()
-
Constructor Details
-
MacroField
public MacroField(MacroDefinition macroDefinition, ValueProvider valueProvider, AbstractPropertyHelperMojo mojo)
-
-
Method Details
-
createMacros
public static List<MacroField> createMacros(ValueCache valueCache, MacroDefinition[] macroDefinitions, AbstractPropertyHelperMojo mojo) throws IOException - Throws:
IOException
-
getPropertyName
Description copied from interface:PropertyElement
The name of the property element.- Specified by:
getPropertyName
in interfacePropertyElement
-
getPropertyValue
Description copied from interface:PropertyElement
The value of the property.Optional.empty()
can be returned if the value is not defined.- Specified by:
getPropertyValue
in interfacePropertyElement
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isExport
public boolean isExport()Description copied from interface:PropertyElement
True if the value of this element should be exposed as a maven property.- Specified by:
isExport
in interfacePropertyElement
-
toString
-