Example usage for org.apache.commons.compress.archivers.zip ZipArchiveEntry setUnixMode

List of usage examples for org.apache.commons.compress.archivers.zip ZipArchiveEntry setUnixMode

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.zip ZipArchiveEntry setUnixMode.

Prototype

public void setUnixMode(int mode) 

Source Link

Document

Sets Unix permissions in a way that is understood by Info-Zip's unzip command.

Usage

From source file:org.springframework.boot.gradle.tasks.bundling.BootZipCopyAction.java

private void prepareEntry(ZipArchiveEntry entry, int unixMode) {
    if (!this.preserveFileTimestamps) {
        entry.setTime(CONSTANT_TIME_FOR_ZIP_ENTRIES);
    }//from www . j  ava 2  s.c  om
    entry.setUnixMode(unixMode);
}