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 Details

    • LINKER_INPUT_LIST_NAME

      public static final String LINKER_INPUT_LIST_NAME
      See Also:
    • LINKER_OUTPUT_PATH

      public static final String LINKER_OUTPUT_PATH
      See Also:
    • INCZIP_FOUND

      public static final String INCZIP_FOUND
      See Also:
    • INCZIP_TYPE

      public static final String INCZIP_TYPE
      See Also:
    • EMPTY_FILE_LIST

      protected static final List<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 File workingDirectory
      user directory when external tools( ie compiler/linker ) are invoked
    • envFactoryName

      @Parameter private 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 File dependencyIncludeDirectory
      Directory to unpack .inczip dependency files to be included as system include path
    • envFactory

      private EnvFactory envFactory
  • Constructor Details

    • AbstractNativeMojo

      public AbstractNativeMojo()
  • Method Details

    • removeEmptyOptions

      protected static String[] removeEmptyOptions(List<String> args)
    • getAllCompilersOutputFileList

      protected List<File> getAllCompilersOutputFileList()
    • saveCompilerOutputFilePaths

      protected void saveCompilerOutputFilePaths(List<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