|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.ee.deploy.impl.helper.UnpackDeployableHelper
public final class UnpackDeployableHelper
Allow to unpack a deployable and build a deployable for this type.
| Field Summary | |
|---|---|
static String |
DEFAULT_FOLDER
Folder to create in tmp folder. |
| Method Summary | ||
|---|---|---|
protected static void |
addFileInDeployable(File file,
EARDeployableImpl earDeployableImpl,
EarUnpackOpts earUnpackOpts)
Analyze the given file by finding its deployable object and add it to the given EAR deployable. |
|
static
|
unpack(T deployable)
Unpack the given archive in a temp folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
File unpackedFolder)
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
File unpackedFolder,
boolean keepExistingFiles)
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
File unpackedFolder,
boolean keepExistingFiles,
EarUnpackOpts earUnpackOpts)
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
File folder,
String archiveName)
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
File folder,
String archiveName,
boolean keepExistingFiles)
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
String pattern)
Unpack the given archive in a temp folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
static
|
unpack(T deployable,
String pattern,
boolean keepExistingFiles,
EarUnpackOpts earUnpackOpts)
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_FOLDER
| Method Detail |
|---|
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
String pattern)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.pattern - the path in the pattern to use in the temp folder
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
File folder,
String archiveName)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.folder - the path of the folder for unpacking the archivearchiveName - the name to use for the unpacked archived
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
File folder,
String archiveName,
boolean keepExistingFiles)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.folder - the path of the folder for unpacking the archivearchiveName - the name to use for the unpacked archivedkeepExistingFiles - if 'true', do not override existing files
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
File unpackedFolder)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.unpackedFolder - the path of the folder for unpacking the archive
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
File unpackedFolder,
boolean keepExistingFiles)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.unpackedFolder - the path of the folder for unpacking the archivekeepExistingFiles - if 'true', do not override existing files
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
String pattern,
boolean keepExistingFiles,
EarUnpackOpts earUnpackOpts)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.pattern - the path in the pattern to use in the temp folderkeepExistingFiles - if 'true', do not override existing filesearUnpackOpts - options to unpack an ear
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked
public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
File unpackedFolder,
boolean keepExistingFiles,
EarUnpackOpts earUnpackOpts)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
T - an object implementing IDeployabledeployable - the archive to unpack.unpackedFolder - the path of the folder for unpacking the archivekeepExistingFiles - if 'true', do not override existing filesearUnpackOpts - options to unpack an ear
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR can't be unpacked
protected static void addFileInDeployable(File file,
EARDeployableImpl earDeployableImpl,
EarUnpackOpts earUnpackOpts)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
file - the file to analyzeearDeployableImpl - the deployable on which the new deployable will
be addedearUnpackOpts - options to unpack an ear
org.ow2.util.ee.deploy.api.deployer.DeployerException - if deployable can't be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||