public class Zips extends Object
| Constructor and Description |
|---|
Zips() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createZipFile(org.apache.maven.plugin.logging.Log log,
File sourceDir,
File outputZipFile)
Creates a zip fie from the given source directory and output zip file name
|
static List<String> |
notNullList(List<String> list) |
static void |
unzip(InputStream in,
File toDir)
Unzips the given input stream of a ZIP to the given directory
|
static void |
zipDirectory(org.apache.maven.plugin.logging.Log log,
File directory,
ZipOutputStream zos,
String path,
FileFilter filter)
Zips the directory recursively into the ZIP stream given the starting path and optional filter
|
public static void createZipFile(org.apache.maven.plugin.logging.Log log,
File sourceDir,
File outputZipFile)
throws IOException
IOExceptionpublic static void zipDirectory(org.apache.maven.plugin.logging.Log log,
File directory,
ZipOutputStream zos,
String path,
FileFilter filter)
throws IOException
IOExceptionpublic static void unzip(InputStream in, File toDir) throws IOException
IOExceptionCopyright © 2011–2015 Red Hat. All rights reserved.