public static void createZipArchive()

in src/main/java/org/apache/netbeans/nbpackage/FileUtils.java [100:109]


    public static void createZipArchive(Path directory, Path destination) throws IOException {
        if (Files.exists(destination)) {
            throw new IOException(destination.toString());
        }
        try {
            ArchiveUtils.createArchive(ArchiveUtils.ArchiveType.ZIP, directory, destination);
        } catch (ArchiveException ex) {
            throw new IOException(ex);
        }
    }