Class NativeUnZipIncMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="unzipinc",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE)
    public class NativeUnZipIncMojo
    extends AbstractNativeMojo
    Unpack any .inczip dependencies to be included as system include path
    Since:
    1.0-alpha-4
    • Field Detail

      • dependencyIncZipMarkerDirectory

        @Parameter(defaultValue="${project.build.directory}/native/markers",
                   required=true)
        private java.io.File dependencyIncZipMarkerDirectory
        Internal
        Since:
        1.0-alpha-4
      • archiverManager

        @Component
        private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
        Internal component for archiving purposes
        Since:
        1.0-alpha-4
    • Constructor Detail

      • NativeUnZipIncMojo

        public NativeUnZipIncMojo()
    • Method Detail

      • execute

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

        private boolean unpackIncZipDepenedencies()
                                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • unpackZipFile

        protected void unpackZipFile​(java.io.File zipFile)
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getIncZipDependencies

        private java.util.List<org.apache.maven.artifact.Artifact> getIncZipDependencies()
        Get all .inczip compile time dependencies
        Returns: