public class ZipUtils extends Object
| Constructor and Description |
|---|
ZipUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
unzip(String zipFilePath,
String unzipLocation,
boolean isAddToClasspath)
A method to unzip a zip file to given folder path.
|
static void |
zip(String sourceDirPath,
String zipFilePath)
A method to zip a folder with given path.
|
public static void zip(String sourceDirPath, String zipFilePath) throws IOException
sourceDirPath - src path to zipzipFilePath - created zip file pathIOException - error while creating the zip filepublic static void unzip(String zipFilePath, String unzipLocation, boolean isAddToClasspath) throws IOException
zipFilePath - src path of the zipunzipLocation - the path zip should be extracted toisAddToClasspath - if the file is jar, whether add it to the CLI class pathIOException - error while unzipping the fileCopyright © 2019 WSO2. All rights reserved.