com.github.maven_nar
Class AbstractNarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
| 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 |
| 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 |
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
AbstractNarMojo
public AbstractNarMojo()
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.