in tooling/common/src/main/java/org/apache/karaf/minho/tooling/common/Runtime.java [294:307]
private void createZipArchive() throws Exception {
Path zipArchive = baseFolder.resolve(name + ".zip");
try (ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputStream(zipArchive.toFile()))) {
Files.list(baseFolder).forEach(file -> {
try {
if (!file.equals(zipArchive)) {
addZipContent(file, baseFolder.toString(), zipOutputStream);
}
} catch (Exception e) {
log.warning("Can't zip jar content " + e.getMessage());
}
});
}
}