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.AbstractMojoAbstract base class for building RPMs.- Author:
- Carlos, Brett Okken, Cerner Corp.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProjectproject
-
Constructor Summary
Constructors Constructor Description AbstractRPMMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterExecution()Will be called on completion ofexecute().voidexecute()DategetBuildTimestamp()StringgetRelease()protected FilegetRPMFile()Returns the generated rpmFile.StringgetVersion()-
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:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
afterExecution
protected void afterExecution() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionWill 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()
-
-