Examples of addFilePatternToIgnore()


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

    ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));
    zipOutputStream.setLevel(0);
   
    DirZipper zipper = new DirZipper();
    zipper.setInputStreamProvider(new PluginISProvider(_designDirectory, obfuscate));
    zipper.addFilePatternToIgnore("^\\..*$");
   
    // Zip all folders and files that belong into an exported plugin
    List<File> filesToZip = new ArrayList<File>();
    filesToZip.add(new File(_designDirectory, DesignDirectory.FOLDERNAME_TML));
    filesToZip.add(new File(_designDirectory, DesignDirectory.FOLDERNAME_SCRIPT));
View Full Code Here

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

    if (javaClassesDir.exists() && javaClassesDir.isDirectory()) {
        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.addFilePatternToIgnore()

            File javaSourceDir = new File(javaSourceFolder);
            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
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.