Package org.codehaus.mojo.rpm
Class AbstractRPMMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.rpm.AbstractRPMMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AttachedRPMMojo
,RPMMojo
public abstract class AbstractRPMMojo extends org.apache.maven.plugin.AbstractMojo
Abstract base class for building RPMs.- Author:
- Carlos, Brett Okken, Cerner Corp.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProject
project
-
Constructor Summary
Constructors Constructor Description AbstractRPMMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterExecution()
Will be called on completion ofexecute()
.void
execute()
Date
getBuildTimestamp()
String
getRelease()
protected File
getRPMFile()
Returns the generated rpmFile
.String
getVersion()
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
execute
public final 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
-
afterExecution
protected void afterExecution() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Will be called on completion ofexecute()
. Provides subclasses an opportunity to perform any post execution logic (such as attaching an artifact).- Throws:
org.apache.maven.plugin.MojoExecutionException
- If an error occurs.org.apache.maven.plugin.MojoFailureException
- If failure occurs.
-
getRPMFile
protected File getRPMFile()
Returns the generated rpmFile
.- Returns:
- The generated rpm
File
.
-
getBuildTimestamp
public Date getBuildTimestamp()
-
getVersion
public final String getVersion()
-
-