Skip to content

manenko/boot-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-zip

Clojars License: EPL-1.0

Boot task for (de-)compressing ZIP archives preserving the Unix permissions.

Tasks

extract-from-zip

(extract-from-zip
  [a archive    VAL str "Location of the ZIP archive that has to be extracted. Required."
   o output-dir VAL str "Path to the output directory. Optional."])

Extracts the given ZIP archive into the given directory preserving the Unix permissions.

If the path to the output directory was not provided (or is empty) then extracts the archive into the fileset's root.

compress-into-zip

(compress-into-zip
  [i input-dir VAL str "Location of the directory that should be compressed. Required."
   a archive   VAL str "Location of the output ZIP archive. Required."])

Compresses the content of the given directory and writes it to the given ZIP file preserving Unix permissions.

The task will not put the folder itself to the archive, only its files and subdirectories (recursively).

License

Copyright © 2017 Oleksandr Manenko.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Clojure boot task for (de-)compressing ZIP archives preserving the Unix permissions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published