Examples of zipDirectory()


Examples of de.innovationgate.utils.DirZipper.zipDirectory()

    Iterator<File> files = filesToZip.iterator();
    while (files.hasNext()) {
        File file = (File) files.next();
        if (file.exists()) {
            if (file.isDirectory()) {
                zipper.zipDirectory(file, zipOutputStream, file.getName() + "/");
            }
            else {
                zipper.zipFile(file, zipOutputStream);
            }
           
View Full Code Here

Examples of de.innovationgate.utils.DirZipper.zipDirectory()

        TemporaryFile jar = new TemporaryFile("plugin-classes.jar", null, null);
        ZipOutputStream jarStream = new ZipOutputStream(new FileOutputStream(jar.getFile()));
        jarStream.setLevel(0);
        DirZipper jarZipper = new DirZipper();
        jarZipper.addFilePatternToIgnore("^\\..*$");
        jarZipper.zipDirectory(javaClassesDir, jarStream);
       
        jarStream.close();
       
        zipper.zipNormalFile(jar.getFile(), zipOutputStream, "files/system/");
       
View Full Code Here

Examples of de.innovationgate.utils.DirZipper.zipDirectory()

            TemporaryFile zip = new TemporaryFile("plugin-sources.zip", null, null);
            ZipOutputStream zipStream = new ZipOutputStream(new FileOutputStream(zip.getFile()));
            zipStream.setLevel(0);
            DirZipper jarZipper = new DirZipper();
            jarZipper.addFilePatternToIgnore("^\\..*$");
            jarZipper.zipDirectory(javaSourceDir, zipStream);
           
            zipStream.close();
           
            zipper.zipNormalFile(zip.getFile(), zipOutputStream, "files/system/");
           
View Full Code Here

Examples of util.io.ZipUtil.zipDirectory()

        StringBuilder dir = new StringBuilder(Settings.getUserSettingsDirName())
            .append(File.separatorChar).append("lang").append(
                File.separatorChar);

        try {
          zip.zipDirectory(f, new File(dir.toString()));
          JOptionPane.showMessageDialog(this, mLocalizer.msg("exportDone", "Export Done!"));
        } catch (IOException e) {
          e.printStackTrace();
          ErrorHandler.handle(mLocalizer.msg("exportFailure", "Error while saving zip file."), e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.