Class UnpackUtil
java.lang.Object
org.apache.maven.plugins.dependency.utils.UnpackUtil
Provide unpack method in one place for
UnpackMojo
and UnpackDependenciesMojo-
Constructor Summary
ConstructorsConstructorDescriptionUnpackUtil(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager, org.sonatype.plexus.build.incremental.BuildContext buildContext) Default constructor. -
Method Summary
-
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 archiverArchiverManagerto usebuildContext- 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 unpacktype- file / artifact typelocation- the locationincludes- includes listexcludes- excludes listencoding- the encodingignorePermissions- ignore permissionsfileMappers-FileMappers to be used for rewriting each target path, ornullif no rewriting shall happenlogger- a Mojo logger- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of an error
-