java.lang.Object
org.basepom.mojo.propertyhelper.MacroField
- All Implemented Interfaces:
PropertyElement
-
Constructor Summary
ConstructorsConstructorDescriptionMacroField(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.booleanisExport()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:PropertyElementThe name of the property element.- Specified by:
getPropertyNamein interfacePropertyElement
-
getPropertyValue
Description copied from interface:PropertyElementThe value of the property.Optional.empty()can be returned if the value is not defined.- Specified by:
getPropertyValuein interfacePropertyElement- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isExport
public boolean isExport()Description copied from interface:PropertyElementTrue if the value of this element should be exposed as a maven property.- Specified by:
isExportin interfacePropertyElement
-
toString
-