Package org.dellroad.stuff.maven
Class ExecSetPropertyMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.dellroad.stuff.maven.AbstractExecSetPropertyMojo
-
- org.dellroad.stuff.maven.ExecSetPropertyMojo
-
- All Implemented Interfaces:
ContextEnabled,Mojo
@Mojo(name="exec-set-property", threadSafe=true, defaultPhase=INITIALIZE) public class ExecSetPropertyMojo extends AbstractExecSetPropertyMojoSets a Maven project property based on the output of an arbitrary command.
-
-
Constructor Summary
Constructors Constructor Description ExecSetPropertyMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringgetPropertyName()Get the name of the property to set.-
Methods inherited from class org.dellroad.stuff.maven.AbstractExecSetPropertyMojo
executeAndSetProperty, isNonEmpty
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
getPropertyName
protected String getPropertyName()
Description copied from class:AbstractExecSetPropertyMojoGet the name of the property to set.- Specified by:
getPropertyNamein classAbstractExecSetPropertyMojo- Returns:
- the name of the property to set
-
execute
public void execute() throws MojoExecutionException- Throws:
MojoExecutionException
-
-