Class MNArchives
java.lang.Object
com.io7m.montarre.nativepack.internal.MNArchives
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 directoryoutputFile- The output fileisExecutable- A function that determines if an entry name is executableshortName- The short name- Returns:
- The output file
- Throws:
IOException- On errorscom.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 directoryoutputFile- The output fileshortName- The short name- Returns:
- The output file
- Throws:
IOException- On errorscom.io7m.jmulticlose.core.ClosingResourceFailedException- On errors
-