public abstract class AbstractNarMojo extends org.apache.maven.plugin.AbstractMojo implements NarConstants
| Modifier and Type | Field and Description |
|---|---|
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 boolean |
dryRun
Indicates that the NAR plugin should do everything besides actually compiling
or linking any source or object files.
|
protected String |
includesType
Specifies the type of include this artifact may contain -- system
or local (default)
|
protected List<Library> |
libraries
List of libraries to create
|
protected String |
libsName
Name of the libraries included
|
protected Replay |
replay |
protected boolean |
skip
Skip running of NAR plugins (any) altogether.
|
protected boolean |
skipRanlib
Skip running ranlib if this artifact is a library
|
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, REPLAY_COMPILE_NAME, REPLAY_LINK_NAME, REPLAY_TEST_COMPILE_NAME, REPLAY_TEST_LINK_NAME| Constructor and Description |
|---|
AbstractNarMojo() |
@Parameter(property="nar.skip",
defaultValue="false")
protected boolean skip
@Parameter(property="project.build.outputDirectory",
readonly=true)
protected File classesDirectory
@Parameter protected List<String> classifiers
@Parameter protected String libsName
@Parameter(defaultValue="false",
required=true)
protected boolean skipRanlib
@Parameter(defaultValue="local",
required=true)
protected String includesType
@Parameter(defaultValue="false",
required=true)
protected boolean dryRun
@Parameter protected Replay replay
public String getWindowsMsvcVersion()
public String getWindowsMsvcDir()
public String getWindowsSdkVersion()
public String getWindowsSdkDir()
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected final AOL getAOL() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected final String getArchitecture()
protected final File getBasedir()
protected final Javah getJavah()
protected final File getJavaHome(AOL aol) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final NarLayout getLayout() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final Linker getLinker()
protected final NARVersionInfo getNARVersionInfo()
protected final org.apache.maven.project.MavenProject getMavenProject()
public Msvc getMsvc() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected NarInfo getNarInfo() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final String getOS()
protected final String getOutput(boolean versioned) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final String getLibsName() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final boolean isSkipRanlib()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final String getIncludesType() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final File getOutputDirectory()
protected final File getTargetDirectory()
protected final File getTestTargetDirectory()
protected final File getTestUnpackDirectory()
protected File getUnpackDirectory()
protected boolean isDryRun()
protected void setDryRun(boolean dryRun)
public abstract void narExecute()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected final void validate()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic Replay getReplay()
public void setReplay(Replay replay)
protected void createReplayDirs()
Copyright © 2005–2020 NAR Maven Plugin developers. All rights reserved.