bld extension for working with archives https://github.com/ethauvin/bld-archive
Find a file
Geert Bevin 4c013a1b33 Updated for bld 1.9.1.
Updated version to 0.4.8.
2024-05-01 16:44:39 -04:00
.github/workflows Added LICENSE and readme 2023-04-08 09:55:40 -04:00
.idea Updated for bld 1.9.1. 2024-05-01 16:44:39 -04:00
.vscode Updated for bld 1.9.1. 2024-05-01 16:44:39 -04:00
lib/bld Updated for bld 1.9.1. 2024-05-01 16:44:39 -04:00
src Updated for bld 1.9.1. 2024-05-01 16:44:39 -04:00
.gitignore first commit 2023-04-07 21:22:26 -04:00
bld first commit 2023-04-07 21:22:26 -04:00
bld.bat first commit 2023-04-07 21:22:26 -04:00
LICENSE Added LICENSE and readme 2023-04-08 09:55:40 -04:00
README.md Updated for bld 1.9.1. 2024-05-01 16:44:39 -04:00

Bld extension for working with archives

License Java bld Release GitHub CI

A bld extension for generating archives.

It's in an incomplete state and currently only generates ZIP archives that preserve the original Posix file permissions. Support for additional features will be added soon.

The complete documentation can be found in its javadocs.

This is a short example of how to create a ZIP archive of a directory:

@BuildCommand
public void zip()
throws Exception {
    new ZipOperation()
        .sourceDirectories(new File("dir/to/zip"))
        .destinationDirectory(new File("destination/dir"))
        .destinationFileName("archive.zip")
        .execute();
}