Package org.codehaus.mojo.rpm
Class VersionMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.rpm.VersionMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="version", defaultPhase=INITIALIZE, threadSafe=true) public class VersionMojo extends org.apache.maven.plugin.AbstractMojo
Makes the rpm version and release attributes available as properties.- Since:
- 2.0
- Author:
- Brett Okken
-
-
Constructor Summary
Constructors Constructor Description VersionMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Date
getBuildTimestamp()
String
getRelease()
String
getVersion()
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getVersion
public final String getVersion()
- Returns:
- Returns the configured version attribute.
-
getRelease
public final String getRelease()
- Returns:
- Returns the configured release attribute.
-
getBuildTimestamp
public Date getBuildTimestamp()
-
-