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 for File that adds a method that allows you to unzip a given file to a specified location
Author:
Marcin Grzejszczak
  • Method Details

    • 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 - file
      destination - (optional), the destination directory where this file's content will be unzipped to.
      Returns:
      a Collection of unzipped File objects.