org.apache.maven.plugin.nar
Class AbstractNarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.nar.AbstractNarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, NarConstants
Direct Known Subclasses:
AbstractDependencyMojo

public abstract class AbstractNarMojo
extends org.apache.maven.plugin.AbstractMojo
implements NarConstants

Author:
Mark Donszelmann

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.nar.NarConstants
LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_VERBOSE, LOG_LEVEL_WARNING, NAR, NAR_AOL, NAR_EXTENSION, NAR_NO_ARCH, NAR_ROLE_HINT, NAR_TYPE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractNarMojo()
           
 
Method Summary
 void execute()
           
protected  AOL getAOL()
           
protected  java.lang.String getArchitecture()
           
protected  java.io.File getBasedir()
           
protected  java.lang.String getFinalName()
           
protected  NarLayout getLayout()
           
protected  Linker getLinker()
           
protected  org.apache.maven.project.MavenProject getMavenProject()
           
protected  java.lang.String getOS()
           
protected  java.io.File getOutputDirectory()
           
protected  java.io.File getTargetDirectory()
           
protected  java.io.File getTestTargetDirectory()
           
protected  java.io.File getTestUnpackDirectory()
           
protected  java.io.File getUnpackDirectory()
           
abstract  void narExecute()
           
protected  void validate()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNarMojo

public AbstractNarMojo()
Method Detail

validate

protected final void validate()
                       throws org.apache.maven.plugin.MojoFailureException,
                              org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getArchitecture

protected final java.lang.String getArchitecture()

getOS

protected final java.lang.String getOS()

getAOL

protected final AOL getAOL()
                    throws org.apache.maven.plugin.MojoFailureException,
                           org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getLinker

protected final Linker getLinker()

getBasedir

protected final java.io.File getBasedir()

getOutputDirectory

protected final java.io.File getOutputDirectory()

getFinalName

protected final java.lang.String getFinalName()

getTargetDirectory

protected final java.io.File getTargetDirectory()

getTestTargetDirectory

protected final java.io.File getTestTargetDirectory()

getUnpackDirectory

protected final java.io.File getUnpackDirectory()

getTestUnpackDirectory

protected final java.io.File getTestUnpackDirectory()

getLayout

protected final NarLayout getLayout()
                             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getMavenProject

protected final org.apache.maven.project.MavenProject getMavenProject()

execute

public final void execute()
                   throws org.apache.maven.plugin.MojoExecutionException,
                          org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

narExecute

public abstract void narExecute()
                         throws org.apache.maven.plugin.MojoFailureException,
                                org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.