class UnzipUtils extends java.lang.Object
| Constructor and description |
|---|
UnzipUtils
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
unzip(org.gradle.api.Project project, java.io.File zipFile, java.io.File destDir)Unzip the given file to the given directory |
|
static void |
unzipOnMacOs(org.gradle.api.Project project, java.io.File zipFile, java.io.File destDir)Unzip on macOS |
|
static void |
unzipWithAnt(org.gradle.api.Project project, java.io.File zipFile, java.io.File destDir) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Unzip the given file to the given directory In general and on Windows, it uses the standard Gradle way (ant.unzip). On macOS, it uses /usr/bin/unzip, which is part of the standard OS and can deal with symbolic links and permissions, assuming the ZIP file has been generated in a compatible way (for instance, with /usr/bin/zip --symlinks)
Unzip on macOS Uses /usr/bin/unzip, which is part of the standard OS and can deal with symbolic links and restore permissions, assuming the ZIP file has been generated in a compatible way.