Class UnpackUtil
java.lang.Object
org.apache.maven.plugins.dependency.utils.UnpackUtil
Provide unpack method in one place for
UnpackMojo
and UnpackDependenciesMojo
-
Constructor Summary
ConstructorDescriptionUnpackUtil
(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 archiverArchiverManager
to 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 location.includes
- includes list.excludes
- excludes list.encoding
- the encoding.ignorePermissions
- ignore permissionsfileMappers
-FileMapper
s to be used for rewriting each target path, ornull
if no rewriting shall happen.logger
- a Mojo logger- Throws:
org.apache.maven.plugin.MojoExecutionException
- in case of an error.
-