Class Unjar
- java.lang.Object
-
- net.ssehub.easy.instantiation.java.instantiators.Unjar
-
-
Constructor Summary
Constructors Constructor Description Unjar()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<FileArtifact>unjar(Path jar, Path target)Packssourcefiles intotargetwithout unpacking the manifest.static Set<FileArtifact>unjar(Path jar, Path target, boolean includeManifest)Packssourcefiles intotarget.static Set<FileArtifact>unjar(Path jar, Path target, java.lang.String pattern)Packssourcefiles which matchesfilterintotargetwithout unpacking the manifest.static Set<FileArtifact>unjar(Path jar, Path target, java.lang.String pattern, boolean includeManifest)Packssourcefiles which matchesfilterintotargetwithout unpacking the manifest.
-
-
-
Method Detail
-
unjar
public static Set<FileArtifact> unjar(Path jar, Path target) throws VilException
Packssourcefiles intotargetwithout unpacking the manifest.- Parameters:
jar- the JAR file to be unpackedtarget- the target path to unpack to- Returns:
- the created artifacts
- Throws:
VilException- in case of unpacking problems
-
unjar
public static Set<FileArtifact> unjar(Path jar, Path target, boolean includeManifest) throws VilException
Packssourcefiles 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:
VilException- in case of unpacking problems
-
unjar
public static Set<FileArtifact> unjar(Path jar, Path target, java.lang.String pattern) throws VilException
Packssourcefiles 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:
VilException- in case of unpacking problems
-
unjar
public static Set<FileArtifact> unjar(Path jar, Path target, java.lang.String pattern, boolean includeManifest) throws VilException
Packssourcefiles 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:
VilException- in case of unpacking problems
-
-