Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ZipArchiveOutputStream (0.25 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DefaultZipCompressor.java

            zip64Mode = allowZip64Mode ? Zip64Mode.AsNeeded : Zip64Mode.Never;
        }
    
        @Override
        public ZipArchiveOutputStream createArchiveOutputStream(File destination) throws IOException {
            ZipArchiveOutputStream outStream = new ZipArchiveOutputStream(destination);
            try {
                outStream.setUseZip64(zip64Mode);
                outStream.setMethod(entryCompressionMethod);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 19 09:01:56 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/ZipCopyAction.java

            }
    
            return WorkResults.didWork(true);
        }
    
        private class StreamAction implements CopyActionProcessingStreamAction {
            private final ZipArchiveOutputStream zipOutStr;
    
            public StreamAction(ZipArchiveOutputStream zipOutStr, String encoding) {
                this.zipOutStr = zipOutStr;
                if (encoding != null) {
                    this.zipOutStr.setEncoding(encoding);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 08 14:16:53 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. platforms/jvm/toolchains-jvm/src/testFixtures/groovy/org/gradle/jvm/toolchain/JdkRepository.groovy

    package org.gradle.jvm.toolchain
    
    import org.apache.commons.compress.archivers.ArchiveOutputStream
    import org.apache.commons.compress.archivers.zip.ZipArchiveEntry
    import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
    import org.apache.commons.compress.utils.IOUtils
    import org.gradle.api.JavaVersion
    import org.gradle.integtests.fixtures.AvailableJavaHomes
    import org.gradle.internal.jvm.Jvm
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 20 08:26:19 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/ZipCopyActionTest.groovy

        void wrapsZip64Failure() {
            given:
            def zipOutputStream = Mock(ZipArchiveOutputStream)
            zipOutputStream.close() >> {
                throw new Zip64RequiredException("xyz")
            }
    
            def compressor = new DefaultZipCompressor(false, ZipArchiveOutputStream.STORED) {
                @Override
                ZipArchiveOutputStream createArchiveOutputStream(File destination) {
                    zipOutputStream
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/classpath/InPlaceClasspathBuilder.java

            }
        }
    
        private static void buildJar(File jarFile, Action action) throws IOException {
            Files.createDirectories(jarFile.getParentFile().toPath());
            try (ZipArchiveOutputStream outputStream = new ZipArchiveOutputStream(new BufferedOutputStream(Files.newOutputStream(jarFile.toPath()), BUFFER_SIZE))) {
                outputStream.setLevel(0);
                action.execute(new ZipEntryBuilder(outputStream));
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/ZipCompressor.java

    package org.gradle.api.internal.file.copy;
    
    import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
    import org.gradle.api.internal.file.archive.compression.ArchiveOutputStreamFactory;
    
    import java.io.File;
    import java.io.IOException;
    
    public interface ZipCompressor extends ArchiveOutputStreamFactory {
    
        @Override
        ZipArchiveOutputStream createArchiveOutputStream(File destination) throws IOException;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 19 09:01:56 UTC 2022
    - 1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

        }
    
        private void writeZipped(TestFile testFile, Closure cl) {
            def bos = new ByteArrayOutputStream()
            writeContents(bos, cl)
    
            ZipArchiveOutputStream zipStream = new ZipArchiveOutputStream(testFile)
            try {
                def entry = new ZipArchiveEntry(testFile.name)
                entry.setTime(lmd.getTime())
                zipStream.putArchiveEntry(entry)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/tasks/bundling/Zip.java

            switch (entryCompression) {
                case DEFLATED:
                    return new DefaultZipCompressor(allowZip64, ZipArchiveOutputStream.DEFLATED);
                case STORED:
                    return new DefaultZipCompressor(allowZip64, ZipArchiveOutputStream.STORED);
                default:
                    throw new IllegalArgumentException(String.format("Unknown Compression type %s", entryCompression));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 08:29:19 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top