Class AbstractNativeMojo

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<java.io.File> getAllCompilersOutputFileList()  
      protected EnvFactory getEnvFactory()  
      protected org.apache.maven.project.MavenProject getProject()
      Internal for unit test only
      protected static java.lang.String[] removeEmptyOptions​(java.util.List<java.lang.String> args)  
      protected void saveCompilerOutputFilePaths​(java.util.List<java.io.File> 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 java.lang.String LINKER_INPUT_LIST_NAME
        See Also:
        Constant Field Values
      • LINKER_OUTPUT_PATH

        public static final java.lang.String LINKER_OUTPUT_PATH
        See Also:
        Constant Field Values
      • EMPTY_FILE_LIST

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

        @Parameter
        private java.lang.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.
      • dependencyIncludeDirectory

        @Parameter(defaultValue="${project.build.directory}/native/include")
        protected java.io.File dependencyIncludeDirectory
        Directory to unpack .inczip dependency files to be included as system include path
      • skip

        @Parameter(property="native.skip",
                   defaultValue="false")
        protected boolean skip
        Set to true to skip the execution of native plugin mojos.
        Since:
        1.0-M2
    • Constructor Detail

      • AbstractNativeMojo

        public AbstractNativeMojo()
    • Method Detail

      • removeEmptyOptions

        protected static java.lang.String[] removeEmptyOptions​(java.util.List<java.lang.String> args)
      • getAllCompilersOutputFileList

        protected java.util.List<java.io.File> getAllCompilersOutputFileList()
      • saveCompilerOutputFilePaths

        protected void saveCompilerOutputFilePaths​(java.util.List<java.io.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