@Named @Singleton public class UnpackUtil extends Object
UnpackMojo
and UnpackDependenciesMojo| Constructor and Description |
|---|
UnpackUtil(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.sonatype.plexus.build.incremental.BuildContext buildContext)
Default constructor.
|
| Modifier and Type | Method and 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) |
@Inject
public UnpackUtil(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.sonatype.plexus.build.incremental.BuildContext buildContext)
archiverManager - an archiver ArchiverManager to usebuildContext - a build contextpublic 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
file - file to unpacktype - file / artifact typelocation - The location.includes - includes list.excludes - excludes list.encoding - the encoding.ignorePermissions - ignore permissionsfileMappers - FileMappers to be used for rewriting each target path, or null if no
rewriting
shall happen.logger - a Mojo loggerorg.apache.maven.plugin.MojoExecutionException - in case of an error.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.