com.github.maven_nar
Class AbstractNarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.github.maven_nar.AbstractNarMojo
All Implemented Interfaces:
NarConstants, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractDependencyMojo, AbstractResourcesMojo, NarJavahMojo, NarPackageMojo, NarPreparePackageMojo, NarSystemMojo

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

Author:
Mark Donszelmann

Field Summary
protected  File classesDirectory
           
protected  List<String> classifiers
          List of classifiers which you want download/unpack/assemble Example ppc-MacOSX-g++, x86-Windows-msvc, i386-Linux-g++.
protected  List<Library> libraries
          List of libraries to create
 
Fields inherited from interface com.github.maven_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  String getArchitecture()
           
protected  File getBasedir()
           
protected  Javah getJavah()
           
protected  File getJavaHome(AOL aol)
           
protected  NarLayout getLayout()
           
protected  List<Library> getLibraries()
           
protected  Linker getLinker()
           
protected  org.apache.maven.project.MavenProject getMavenProject()
           
protected  NarInfo getNarInfo()
           
protected  String getOS()
           
protected  String getOutput(boolean versioned)
           
protected  File getOutputDirectory()
           
protected  File getTargetDirectory()
           
protected  File getTestTargetDirectory()
           
protected  File getTestUnpackDirectory()
           
protected  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
 

Field Detail

classesDirectory

protected File classesDirectory

classifiers

protected List<String> classifiers
List of classifiers which you want download/unpack/assemble Example ppc-MacOSX-g++, x86-Windows-msvc, i386-Linux-g++. Not setting means all.


libraries

protected List<Library> libraries
List of libraries to create

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

getOutput

protected final String getOutput(boolean versioned)
                          throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getArchitecture

protected final String getArchitecture()

getOS

protected final 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 File getBasedir()

getOutputDirectory

protected final File getOutputDirectory()

getTargetDirectory

protected final File getTargetDirectory()

getTestTargetDirectory

protected final File getTestTargetDirectory()

getUnpackDirectory

protected File getUnpackDirectory()

getTestUnpackDirectory

protected final 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

getNarInfo

protected NarInfo getNarInfo()
                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getLibraries

protected final List<Library> getLibraries()

getJavah

protected final Javah getJavah()

getJavaHome

protected final File getJavaHome(AOL aol)
                          throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


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