Class Unjar
- java.lang.Object
-
- net.ssehub.easy.instantiation.java.instantiators.Unjar
-
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
public class Unjar extends java.lang.Object implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilTypeUnpacks JAR files.- Author:
- Holger Eichelberger, kroeher
-
-
Constructor Summary
Constructors Constructor Description Unjar()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact>unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target)Packssourcefiles intotargetwithout unpacking the manifest.static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact>unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target, boolean includeManifest)Packssourcefiles intotarget.static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact>unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target, java.lang.String pattern)Packssourcefiles which matchesfilterintotargetwithout unpacking the manifest.static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact>unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target, java.lang.String pattern, boolean includeManifest)Packssourcefiles which matchesfilterintotargetwithout unpacking the manifest.
-
-
-
Method Detail
-
unjar
public static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact> unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target) throws net.ssehub.easy.instantiation.core.model.common.VilExceptionPackssourcefiles intotargetwithout unpacking the manifest.- Parameters:
jar- the JAR file to be unpackedtarget- the target path to unpack to- Returns:
- the created artifacts
- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case of unpacking problems
-
unjar
public static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact> unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target, boolean includeManifest) throws net.ssehub.easy.instantiation.core.model.common.VilExceptionPackssourcefiles intotarget.- Parameters:
jar- the JAR file to be unpackedtarget- the target path to unpack toincludeManifest- whether the manifest shall also be unpacked- Returns:
- the created artifacts
- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case of unpacking problems
-
unjar
public static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact> unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target, java.lang.String pattern) throws net.ssehub.easy.instantiation.core.model.common.VilExceptionPackssourcefiles which matchesfilterintotargetwithout unpacking the manifest.- Parameters:
jar- the JAR file to be unpackedtarget- the target path to unpack topattern- an optional ANT pattern used as a filter expression, typically a specific folder or package. May benullif no filter is required.- Returns:
- the created artifacts
- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case of unpacking problems
-
unjar
public static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact> unjar(net.ssehub.easy.instantiation.core.model.artifactModel.Path jar, net.ssehub.easy.instantiation.core.model.artifactModel.Path target, java.lang.String pattern, boolean includeManifest) throws net.ssehub.easy.instantiation.core.model.common.VilExceptionPackssourcefiles which matchesfilterintotargetwithout unpacking the manifest.- Parameters:
jar- the JAR file to be unpackedtarget- the target path to unpack topattern- an optional ANT pattern used as a filter expression, typically a specific folder or package. May benullif no filter is required.includeManifest- whether the manifest shall also be unpacked- Returns:
- the created artifacts
- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case of unpacking problems
-
-