public class Archives extends Object
| Constructor and Description |
|---|
Archives() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
uncompress(Path archiveFile,
Path targetDir)
Unzips the zip file to the target directory.
|
static Path |
uncompress(Path archiveFile,
Path targetDir,
boolean replaceIfExists)
Unzips the zip file to the target directory.
|
public static Path uncompress(Path archiveFile, Path targetDir) throws IOException
Note this is specific to how WildFly is archived. The first directory is assumed to be the base home directory and will returned.
archiveFile - the archive to uncompress, can be a .zip or .tar.gztargetDir - the directory to extract the zip file toIOException - if an I/O error occurspublic static Path uncompress(Path archiveFile, Path targetDir, boolean replaceIfExists) throws IOException
Note this is specific to how WildFly is archived. The first directory is assumed to be the base home directory and will returned.
archiveFile - the archive to uncompress, can be a .zip or .tar.gztargetDir - the directory to extract the zip file toreplaceIfExists - if true replace the existing files if they existIOException - if an I/O error occursCopyright © 2021 JBoss by Red Hat. All rights reserved.