Package org.dellroad.stuff.maven
Class SvnVersionMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.dellroad.stuff.maven.AbstractExecSetPropertyMojo
-
- org.dellroad.stuff.maven.SvnVersionMojo
-
- All Implemented Interfaces:
ContextEnabled,Mojo
@Mojo(name="svn-version", threadSafe=true, defaultPhase=INITIALIZE) public class SvnVersionMojo extends AbstractExecSetPropertyMojoSets a Maven project property based on the output ofsvnversion.
-
-
Constructor Summary
Constructors Constructor Description SvnVersionMojo()
-
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
-
-