Class ZipCategory
- java.lang.Object
-
- org.springframework.cloud.contract.stubrunner.util.ZipCategory
-
public final class ZipCategory extends Object
Based on https://github.com/ timyates/groovy-common-extensions. Category forFilethat adds a method that allows you to unzip a given file to a specified location- Author:
- Marcin Grzejszczak
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<File>unzipTo(File self, File destination)Unzips this file.
-
-
-
Method Detail
-
unzipTo
public static Collection<File> unzipTo(File self, File destination)
Unzips this file. If the destination directory is not provided, it will fall back to this file's parent directory.- Parameters:
self- filedestination- (optional), the destination directory where this file's content will be unzipped to.- Returns:
- a
Collectionof unzippedFileobjects.
-
-