org.codehaus.mojo.natives.plugin
Class AbstractNativeMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.natives.plugin.AbstractNativeMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
NativeBundleIncludeFilesMojo, NativeCompileMojo, NativeJavahMojo, NativeLinkMojo, NativeManifestMojo, NativeMessageCompileMojo, NativeRanlibMojo, NativeResourceCompileMojo, NativeUnZipIncMojo

public abstract class AbstractNativeMojo
extends AbstractMojo


Field Summary
protected  File dependencyIncludeDirectory
          Directory to unpack .inczip dependency files to be included as system include path
protected static List EMPTY_FILE_LIST
           
protected  EnvFactoryManager envFactoryManager
          Internal
static String INCZIP_FOUND
           
static String INCZIP_TYPE
           
static String LINKER_INPUT_LIST_NAME
           
static String LINKER_OUTPUT_PATH
           
protected  org.apache.maven.project.MavenProject project
          POM
protected  File workingDirectory
          user directory when external tools( ie compiler/linker ) are invoked
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractNativeMojo()
           
 
Method Summary
protected  List getAllCompilersOutputFileList()
           
protected  EnvFactory getEnvFactory()
           
protected  org.apache.maven.project.MavenProject getProject()
          Internal for unit test only
protected static String[] removeEmptyOptions(List args)
           
protected  void saveCompilerOutputFilePaths(List filePaths)
           
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

LINKER_INPUT_LIST_NAME

public static final String LINKER_INPUT_LIST_NAME
See Also:
Constant Field Values

LINKER_OUTPUT_PATH

public static final String LINKER_OUTPUT_PATH
See Also:
Constant Field Values

INCZIP_FOUND

public static final String INCZIP_FOUND
See Also:
Constant Field Values

INCZIP_TYPE

public static final String INCZIP_TYPE
See Also:
Constant Field Values

EMPTY_FILE_LIST

protected static final List EMPTY_FILE_LIST

project

protected org.apache.maven.project.MavenProject project
POM

Since:
1.0-alpha-2
Is defined by:
expression:
${project}
Is readonly.

workingDirectory

protected File workingDirectory
user directory when external tools( ie compiler/linker ) are invoked

Since:
1.0-alpha-2
Is defined by:
default-value:
${basedir}
Is required.

envFactoryManager

protected EnvFactoryManager envFactoryManager
Internal

Since:
1.0-alpha-2
Is a Plexus component defined by:
Is readonly.

dependencyIncludeDirectory

protected File dependencyIncludeDirectory
Directory to unpack .inczip dependency files to be included as system include path

Is defined by:
default-value:
${project.build.directory}/native/include
Constructor Detail

AbstractNativeMojo

public AbstractNativeMojo()
Method Detail

removeEmptyOptions

protected static String[] removeEmptyOptions(List args)

getAllCompilersOutputFileList

protected List getAllCompilersOutputFileList()

saveCompilerOutputFilePaths

protected void saveCompilerOutputFilePaths(List filePaths)
                                    throws MojoExecutionException
Throws:
MojoExecutionException

getProject

protected org.apache.maven.project.MavenProject getProject()
Internal for unit test only


getEnvFactory

protected EnvFactory getEnvFactory()
                            throws MojoExecutionException
Throws:
MojoExecutionException


Copyright © 2005-2010 Codehaus. All Rights Reserved.