Class UnpackUtil

java.lang.Object
org.apache.maven.plugins.dependency.utils.UnpackUtil

@Named @Singleton public class UnpackUtil extends Object
Provide unpack method in one place for UnpackMojo and UnpackDependenciesMojo
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnpackUtil(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager, org.sonatype.plexus.build.incremental.BuildContext buildContext)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    unpack(File file, String type, File location, String includes, String excludes, String encoding, boolean ignorePermissions, org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers, org.apache.maven.plugin.logging.Log logger)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnpackUtil

      @Inject public UnpackUtil(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager, org.sonatype.plexus.build.incremental.BuildContext buildContext)
      Default constructor.
      Parameters:
      archiverManager - an archiver ArchiverManager to use
      buildContext - a build context
  • Method Details

    • unpack

      public void unpack(File file, String type, File location, String includes, String excludes, String encoding, boolean ignorePermissions, org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers, org.apache.maven.plugin.logging.Log logger) throws org.apache.maven.plugin.MojoExecutionException
      Parameters:
      file - file to unpack
      type - file / artifact type
      location - The location.
      includes - includes list.
      excludes - excludes list.
      encoding - the encoding.
      ignorePermissions - ignore permissions
      fileMappers - FileMappers to be used for rewriting each target path, or null if no rewriting shall happen.
      logger - a Mojo logger
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of an error.