Class ArchiveUtils

java.lang.Object
com.sap.cds.maven.plugin.util.ArchiveUtils

public class ArchiveUtils extends Object
This class extracts *.zip and tar.gz archives to a given destination directory.
  • Method Details

    • extract

      public static void extract(File archiveFile, File destinationDirectory) throws IOException
      Extracts an archive to a destination directory
      Parameters:
      archiveFile - the archive to extract, either *.zip or tar.gz
      destinationDirectory - the destination directory
      Throws:
      FileNotFoundException - if given archive doesn't exist
      IOException - if an I/O error occurred
      NullPointerException - if any of the parameters is null.