public class ArchiveHelper extends Object
Constructor | Description |
---|---|
ArchiveHelper() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
addFilesToExistingJar(File jarFile,
String basePathWithinJar,
Map<String,File> files,
ActionOnConflict action) |
Adds a file or files to a jar file, replacing the original one
|
static boolean |
extractArchive(File tarFile,
File extractTo) |
Extracts a .tar or .tar.gz archive to a given folder
|
public static boolean extractArchive(File tarFile, File extractTo)
tarFile
- File The archive fileextractTo
- File The folder to extract the contents of this archive topublic static boolean addFilesToExistingJar(File jarFile, String basePathWithinJar, Map<String,File> files, ActionOnConflict action) throws IOException
jarFile
- File the jar filebasePathWithinJar
- String the base path to put the files within the Jarfiles
- File[] The files. The files will be placed in basePathWithinJarException
IOException
Copyright © 2018. All rights reserved.