Class Unzip
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.defaultInstantiators.Unzip
-
-
Constructor Summary
Constructors Constructor Description Unzip()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<FileArtifact>unpack(Path zip, Path target, java.lang.String pattern, ZipHandler handler)Unpacks files inzipthat matches the givenfilterintotarget.static Set<FileArtifact>unpack(Path zip, Path target, ZipHandler handler)Unpacks files inzipintotarget.static Set<FileArtifact>unzip(Path zip, Path target)Unpacks files inzipintotarget.
-
-
-
Method Detail
-
unzip
public static Set<FileArtifact> unzip(Path zip, Path target) throws VilException
Unpacks files inzipintotarget.- Parameters:
zip- the ZIP file to be unpackedtarget- the target path to unpack to- Returns:
- the created artifacts
- Throws:
VilException- in case of unpacking problems
-
unpack
public static Set<FileArtifact> unpack(Path zip, Path target, ZipHandler handler) throws VilException
Unpacks files inzipintotarget.- Parameters:
zip- the ZIP file to be unpackedtarget- the target path to unpack tohandler- the ZIP/JAR handler- Returns:
- the created artifacts
- Throws:
VilException- in case of unpacking problems
-
unpack
public static Set<FileArtifact> unpack(Path zip, Path target, java.lang.String pattern, ZipHandler handler) throws VilException
Unpacks files inzipthat matches the givenfilterintotarget.- Parameters:
zip- the ZIP 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.handler- the ZIP/JAR handler- Returns:
- the created artifacts
- Throws:
VilException- in case of unpacking problems
-
-