org.codehaus.mojo.natives.plugin
Class NativeCompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.natives.plugin.AbstractNativeMojo
          extended by org.codehaus.mojo.natives.plugin.NativeCompileMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class NativeCompileMojo
extends AbstractNativeMojo

Compile source files into native object files

Is defined by the goal name:
compile
Is bound to the specified phase of the standard build lifecycle:
compile

Field Summary
protected  File compilerOutputDirectory
          Compiler output files ( .o, .obj, etc) location
protected  int numberOfConcurrentCompilation
          Number of parallel compilation threads
protected  NativeSources[] sources
          Array of NativeSources containing include directories and source files.
 
Fields inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
dependencyIncludeDirectory, EMPTY_FILE_LIST, envFactoryManager, INCZIP_FOUND, INCZIP_TYPE, LINKER_INPUT_LIST_NAME, LINKER_OUTPUT_PATH, project, workingDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
NativeCompileMojo()
           
 
Method Summary
protected  CompilerConfiguration createProviderConfiguration()
           
 void execute()
           
protected  CompilerConfiguration getCompilerConfiguration()
          Internal only for test harness purpose
 
Methods inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
getAllCompilersOutputFileList, getEnvFactory, getProject, removeEmptyOptions, saveCompilerOutputFilePaths
 
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
 

Field Detail

sources

protected NativeSources[] sources
Array of NativeSources containing include directories and source files.

Since:
1.0-alpha-2
Is defined by:

compilerOutputDirectory

protected File compilerOutputDirectory
Compiler output files ( .o, .obj, etc) location

Since:
1.0-alpha-4
Is defined by:
default-value:
${project.build.directory}/objs
Is required.

numberOfConcurrentCompilation

protected int numberOfConcurrentCompilation
Number of parallel compilation threads

Since:
1.0-alpha-4
Is defined by:
default-value:
1
Constructor Detail

NativeCompileMojo

public NativeCompileMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Throws:
MojoExecutionException

createProviderConfiguration

protected CompilerConfiguration createProviderConfiguration()
                                                     throws MojoExecutionException
Throws:
MojoExecutionException

getCompilerConfiguration

protected CompilerConfiguration getCompilerConfiguration()
Internal only for test harness purpose

Returns:


Copyright © 2005-2010 Codehaus. All Rights Reserved.