com.github.maven_nar
Class AbstractCompileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.maven_nar.AbstractNarMojo
com.github.maven_nar.AbstractDependencyMojo
com.github.maven_nar.AbstractCompileMojo
- All Implemented Interfaces:
- NarConstants, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- NarCompileMojo, NarProcessLibraries, NarTestCompileMojo, NarTestMojo, NarValidateMojo, NarVcprojMojo
public abstract class AbstractCompileMojo
- extends AbstractDependencyMojo
- Author:
- Mark Donszelmann
|
Field Summary |
protected int |
commandLogLevel
Do we log commands that is executed to produce the end-result?
Conception was to allow eclipse to sniff out include-paths from compile. |
protected boolean |
decorateLinkerOptions
Flag to cpptasks to indicate whether linker options should be decorated or not |
protected boolean |
onlySpecifiedCompilers
By default NAR compile will attempt to compile using all known compilers against files in the directories specified by convention. |
| 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 com.github.maven_nar.AbstractDependencyMojo |
downloadAttachedNars, getAllAttachedNarArtifacts, getArchiverManager, getArtifacts, getBinding, getLocalRepository, getNarArtifacts, getNarInfo, getNarManager, getRemoteRepositories, narExecute, unpackAttachedNars |
| Methods inherited from class com.github.maven_nar.AbstractNarMojo |
execute, getAOL, getArchitecture, getBasedir, getJavah, getJavaHome, getLayout, getLibraries, getLinker, getMavenProject, getNarInfo, getOS, getOutput, getOutputDirectory, getTargetDirectory, getTestTargetDirectory, getTestUnpackDirectory, getUnpackDirectory, 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 |
onlySpecifiedCompilers
protected boolean onlySpecifiedCompilers
- By default NAR compile will attempt to compile using all known compilers against files in the directories specified by convention.
This allows configuration to a reduced set, you will have to specify each compiler to use in the configuration.
commandLogLevel
protected int commandLogLevel
- Do we log commands that is executed to produce the end-result?
Conception was to allow eclipse to sniff out include-paths from compile.
decorateLinkerOptions
protected boolean decorateLinkerOptions
- Flag to cpptasks to indicate whether linker options should be decorated or not
AbstractCompileMojo
public AbstractCompileMojo()
getAntProject
protected final org.apache.tools.ant.Project getAntProject()
setCpp
public void setCpp(Cpp cpp)
setC
public void setC(C c)
setFortran
public void setFortran(Fortran fortran)
setResource
public void setResource(Resource resource)
setIdl
public void setIdl(IDL idl)
setMessage
public void setMessage(Message message)
getC
protected final C getC()
getCpp
protected final Cpp getCpp()
getFortran
protected final Fortran getFortran()
getResource
protected final Resource getResource()
getIdl
protected final IDL getIdl()
getMessage
protected final Message getMessage()
getMaxCores
protected final int getMaxCores(AOL aol)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
useLibtool
protected final boolean useLibtool(AOL aol)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
failOnError
protected final boolean failOnError(AOL aol)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getRuntime
protected final String getRuntime(AOL aol)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getOutput
protected final String getOutput(AOL aol,
String type)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getTests
protected final List getTests()
getJava
protected final Java getJava()
setDependencyLibOrder
public final void setDependencyLibOrder(List order)
getDependencyLibOrder
protected final List getDependencyLibOrder()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.