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:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
NativeCompileMojo, NativeLinkMojo, NativeMessageCompileMojo, NativeRanlibMojo, NativeResourceCompileMojo

public abstract class AbstractNativeMojo
extends org.apache.maven.plugin.AbstractMojo

Version:
$Id: AbstractNativeMojo.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Dan T. Tran

Field Summary
protected static List EMPTY_FILE_LIST
           
protected  String envFactoryName
          Specifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface.
static String LINKER_INPUT_LIST_NAME
           
protected  File outputDirectory
          Where to place the final packaging and compiler object files
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  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

EMPTY_FILE_LIST

protected static final List EMPTY_FILE_LIST

project

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


workingDirectory

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


outputDirectory

protected File outputDirectory
Where to place the final packaging and compiler object files


envFactoryName

protected 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.

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 org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getProject

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



Copyright © 2005-2011 Codehaus. All Rights Reserved.