public class ArchiveHelper
extends java.lang.Object
| Constructor and Description |
|---|
ArchiveHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addFilesToExistingJar(java.io.File jarFile,
java.lang.String basePathWithinJar,
java.util.Map<java.lang.String,java.io.File> files,
ActionOnConflict action)
Adds a file or files to a jar file, replacing the original one
|
static boolean |
extractArchive(java.io.File tarFile,
java.io.File extractTo)
Extracts a .tar or .tar.gz archive to a given folder
|
public static boolean extractArchive(java.io.File tarFile,
java.io.File extractTo)
tarFile - File The archive fileextractTo - File The folder to extract the contents of this archive topublic static boolean addFilesToExistingJar(java.io.File jarFile,
java.lang.String basePathWithinJar,
java.util.Map<java.lang.String,java.io.File> files,
ActionOnConflict action)
throws java.io.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 basePathWithinJarjava.lang.Exceptionjava.io.IOExceptionCopyright © 2014. All Rights Reserved.