public class AbstractArchiver extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MAVEN_LOCATION |
static String |
META_INF_LOCATION |
static String |
ROOT_LOCATION |
| Constructor and Description |
|---|
AbstractArchiver(org.codehaus.plexus.archiver.AbstractArchiver archiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMaven(File resource,
String[] includes,
String[] excludes) |
protected void |
addResource(String resourceLocation,
File resource,
String[] includes,
String[] excludes) |
void |
addToRoot(File resource,
String[] includes,
String[] excludes) |
void |
createArchive()
It saves the archive in the file sytem
|
org.codehaus.plexus.archiver.AbstractArchiver |
getArchiver() |
void |
setDestFile(File destFile)
Defines the file in which to store the archive
|
public static final String ROOT_LOCATION
public static final String META_INF_LOCATION
public static final String MAVEN_LOCATION
public AbstractArchiver(org.codehaus.plexus.archiver.AbstractArchiver archiver)
public void addMaven(File resource, String[] includes, String[] excludes) throws org.codehaus.plexus.archiver.ArchiverException
resource - Folder or file that is going to be added to the added to the maven folder.org.codehaus.plexus.archiver.ArchiverExceptionpublic void addToRoot(File resource, String[] includes, String[] excludes) throws org.codehaus.plexus.archiver.ArchiverException
resource - Folder/file that is going to be added to the package root location.org.codehaus.plexus.archiver.ArchiverExceptionpublic void setDestFile(File destFile)
destFile - the destination filepublic void createArchive()
throws IOException
IOException - in case of failure to writeprotected void addResource(String resourceLocation, File resource, String[] includes, String[] excludes)
public org.codehaus.plexus.archiver.AbstractArchiver getArchiver()
Copyright © 2018 MuleSoft Inc. All rights reserved.