public class ArchiveHelper extends Object
| Constructor and Description |
|---|
ArchiveHelper() |
| Modifier and Type | Method and 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 basePathWithinJarExceptionIOExceptionCopyright © 2017. All rights reserved.