Class NativeCompileMojo

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

@Mojo(name="compile", defaultPhase=COMPILE) public class NativeCompileMojo extends AbstractNativeMojo
Compile source files into native object files
  • Field Details

    • sources

      @Parameter protected NativeSources[] sources
      Array of NativeSources containing include directories and source files.
      Since:
      1.0-alpha-2
    • compilerOutputDirectory

      @Parameter(defaultValue="${project.build.directory}/objs", required=true) protected File compilerOutputDirectory
      Compiler output files ( .o, .obj, etc) location
      Since:
      1.0-alpha-4
    • numberOfConcurrentCompilation

      @Parameter(defaultValue="1") protected int numberOfConcurrentCompilation
      Number of parallel compilation threads
      Since:
      1.0-alpha-4
  • Constructor Details

    • NativeCompileMojo

      public NativeCompileMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • createProviderConfiguration

      protected CompilerConfiguration createProviderConfiguration() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getCompilerConfiguration

      protected CompilerConfiguration getCompilerConfiguration()
      Internal only for test harness purpose
      Returns: