8687888990919293949596
for (int x=0; x<dirs.length - 1; x++) { pwd.append(dirs[x]).append("/"); if (allDirs.add(pwd.toString())) { builder.addResource(pwd.toString(), ""); } } } File jar = builder.buildWithNoManifest(); File zip = new File(jar.getPath() + ".zip");