Examples of GZipArchiver


Examples of org.codehaus.plexus.archiver.gzip.GZipArchiver

            final File metadataGz = new File(gemWorkdir, "metadata.gz");
            FileUtils.fileWrite(metadata.getAbsolutePath(),
                                "UTF-8",
                                gemspecString);
            // gzip it into metadata.gz
            final GZipArchiver gzip = new GZipArchiver();
            gzip.setDestFile(metadataGz);
            gzip.addFile(metadata, "metadata.gz");
            gzip.createArchive();

            final TarArchiver tar = new TarArchiver();
            // turn off logging
            tar.enableLogging(new AbstractLogger(0, "nologging") {
View Full Code Here

Examples of org.gradle.api.internal.file.archive.compression.GzipArchiver

        this.fileOperations = fileOperations;
        textResourceFactory = new DefaultTextResourceFactory(fileOperations, tempFileProvider);
    }

    public ReadableResource gzip(Object path) {
        return new GzipArchiver(fileOperations.getFileResolver().resolveResource(path));
    }
View Full Code Here

Examples of org.gradle.api.internal.file.archive.compression.GzipArchiver

        String ext = FilenameUtils.getExtension(resource.getURI().toString());

        if (Compression.BZIP2.getSupportedExtensions().contains(ext)) {
            this.resource = new Bzip2Archiver(resource);
        } else if (Compression.GZIP.getSupportedExtensions().contains(ext)) {
            this.resource = new GzipArchiver(resource);
        } else {
            this.resource = resource;
        }
    }
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.