Package org.codehaus.mojo.natives.plugin
Class AbstractNativeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.natives.plugin.AbstractNativeMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
NativeBundleIncludeFilesMojo,NativeCompileMojo,NativeJavahMojo,NativeLinkMojo,NativeManifestMojo,NativeMessageCompileMojo,NativeRanlibMojo,NativeResourceCompileMojo,NativeUnZipIncMojo
public abstract class AbstractNativeMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FiledependencyIncludeDirectoryDirectory to unpack .inczip dependency files to be included as system include pathprotected static java.util.List<java.io.File>EMPTY_FILE_LISTprivate EnvFactoryenvFactoryprotected EnvFactoryManagerenvFactoryManagerprivate java.lang.StringenvFactoryNameSpecifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface.static java.lang.StringINCZIP_FOUNDstatic java.lang.StringINCZIP_TYPEstatic java.lang.StringLINKER_INPUT_LIST_NAMEstatic java.lang.StringLINKER_OUTPUT_PATHprotected org.apache.maven.project.MavenProjectprojectprotected java.io.FileworkingDirectoryuser directory when external tools( ie compiler/linker ) are invoked
-
Constructor Summary
Constructors Constructor Description AbstractNativeMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.io.File>getAllCompilersOutputFileList()protected EnvFactorygetEnvFactory()protected org.apache.maven.project.MavenProjectgetProject()Internal for unit test onlyprotected static java.lang.String[]removeEmptyOptions(java.util.List<java.lang.String> args)protected voidsaveCompilerOutputFilePaths(java.util.List<java.io.File> filePaths)-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
LINKER_INPUT_LIST_NAME
public static final java.lang.String LINKER_INPUT_LIST_NAME
- See Also:
- Constant Field Values
-
LINKER_OUTPUT_PATH
public static final java.lang.String LINKER_OUTPUT_PATH
- See Also:
- Constant Field Values
-
INCZIP_FOUND
public static final java.lang.String INCZIP_FOUND
- See Also:
- Constant Field Values
-
INCZIP_TYPE
public static final java.lang.String INCZIP_TYPE
- See Also:
- Constant Field Values
-
EMPTY_FILE_LIST
protected static final java.util.List<java.io.File> EMPTY_FILE_LIST
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
-
workingDirectory
@Parameter(defaultValue="${basedir}", required=true) protected java.io.File workingDirectoryuser directory when external tools( ie compiler/linker ) are invoked
-
envFactoryName
@Parameter private java.lang.String envFactoryName
Specifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface. The class creates a set environment variables to be used with the command line.
-
envFactoryManager
@Component protected EnvFactoryManager envFactoryManager
-
dependencyIncludeDirectory
@Parameter(defaultValue="${project.build.directory}/native/include") protected java.io.File dependencyIncludeDirectoryDirectory to unpack .inczip dependency files to be included as system include path
-
envFactory
private EnvFactory envFactory
-
-
Method Detail
-
removeEmptyOptions
protected static java.lang.String[] removeEmptyOptions(java.util.List<java.lang.String> args)
-
getAllCompilersOutputFileList
protected java.util.List<java.io.File> getAllCompilersOutputFileList()
-
saveCompilerOutputFilePaths
protected void saveCompilerOutputFilePaths(java.util.List<java.io.File> filePaths) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getProject
protected org.apache.maven.project.MavenProject getProject()
Internal for unit test only
-
getEnvFactory
protected EnvFactory getEnvFactory() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-