Class UnzipStep

  • All Implemented Interfaces:
    Step

    public class UnzipStep
    extends UnarchiveStep
    A step that extracts zip archives
    • Constructor Detail

      • UnzipStep

        public UnzipStep​(ProjectFilesystem filesystem,
                         Path zipFile,
                         Path destinationDirectory,
                         Optional<Path> stripPrefix)
        Create an instance of UnzipStep
        Parameters:
        filesystem - The filesystem that the archive will be extracted into
        zipFile - The path to the file to extract
        destinationDirectory - The directory to extract files into
        stripPrefix - If present, strip this prefix from paths inside of the archive
      • UnzipStep

        public UnzipStep​(ProjectFilesystem filesystem,
                         Path zipFile,
                         Path destinationDirectory,
                         Optional<Path> stripPrefix,
                         PatternsMatcher entriesToExclude)
        Create an instance of UnzipStep
        Parameters:
        filesystem - The filesystem that the archive will be extracted into
        zipFile - The path to the file to extract
        destinationDirectory - The directory to extract files into
        stripPrefix - If present, strip this prefix from paths inside of the archive
        entriesToExclude - entries that match this matcher will not be extracted
    • Method Detail

      • getShortName

        public String getShortName()
        Returns:
        a short name/description for the command, such as "javac". Should fit on one line.