Class MNArchives

java.lang.Object
com.io7m.montarre.nativepack.internal.MNArchives

public final class MNArchives extends Object
Functions to create archives.
  • Method Details

    • packTar

      public static Path packTar(Path inputDirectory, Path outputFile, Predicate<String> isExecutable, MShortName shortName) throws IOException, com.io7m.jmulticlose.core.ClosingResourceFailedException
      Pack the given directory into an archive.
      Parameters:
      inputDirectory - The input directory
      outputFile - The output file
      isExecutable - A function that determines if an entry name is executable
      shortName - The short name
      Returns:
      The output file
      Throws:
      IOException - On errors
      com.io7m.jmulticlose.core.ClosingResourceFailedException - On errors
    • packZip

      public static Path packZip(Path inputDirectory, Path outputFile, MShortName shortName) throws IOException, com.io7m.jmulticlose.core.ClosingResourceFailedException
      Pack the given directory into an archive.
      Parameters:
      inputDirectory - The input directory
      outputFile - The output file
      shortName - The short name
      Returns:
      The output file
      Throws:
      IOException - On errors
      com.io7m.jmulticlose.core.ClosingResourceFailedException - On errors