Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for zipEntry (0.24 sec)

  1. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/ZipEntry.java

     * limitations under the License.
     */
    
    package org.gradle.api.internal.file.archive;
    
    import javax.annotation.Nullable;
    import java.io.IOException;
    import java.io.InputStream;
    
    public interface ZipEntry {
        /**
         * The compression method used for an entry
         */
        enum ZipCompressionMethod {
            /**
             * The entry is compressed with DEFLATE algorithm.
             */
            DEFLATED,
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/DefaultZipEntryContext.java

        }
    
        private static class ZipEntryRelativePath implements Supplier<String[]> {
            private final ZipEntry zipEntry;
    
            ZipEntryRelativePath(ZipEntry zipEntry) {
                this.zipEntry = zipEntry;
            }
    
            @Override
            public String[] get() {
                return FilePathUtil.getPathSegments(zipEntry.getName());
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/JarFilePackageLister.java

                try {
                    final Enumeration<? extends ZipEntry> zipFileEntries = zipFile.entries();
    
                    while (zipFileEntries.hasMoreElements()) {
                        final ZipEntry zipEntry = zipFileEntries.nextElement();
                        final String entryName = zipEntry.getName();
                        final String packageName = zipEntry.isDirectory() ? entryName :
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ZipHasher.java

            for (ZipEntry zipEntry : input) {
                if (zipEntry.isDirectory()) {
                    continue;
                }
                String fullName = parentName.isEmpty() ? zipEntry.getName() : parentName + "/" + zipEntry.getName();
                ZipEntryContext zipEntryContext = new DefaultZipEntryContext(zipEntry, fullName, rootParentName);
                if (isZipFile(zipEntry.getName())) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasherTest.groovy

            when:
            hasher.hash(zipEntry('META-INF/foo'))
            hasher.hash(zipEntry('META-INF/foo/MANIFEST.MF'))
            hasher.hash(zipEntry('META-INF/properties'))
            hasher.hash(zipEntry('META-INF/build.propertiesX'))
            hasher.hash(zipEntry('bar.properties'))
            hasher.hash(zipEntry('resources/foo.properties'))
            hasher.hash(zipEntry('foo'))
            hasher.hash(zipEntry('org/gradle/foo.class'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

                if (name.endsWith(".class")) {
                    processClassFile(zipEntry, builder)
                }
            }
    
            @Throws(IOException::class)
            private
            fun processClassFile(zipEntry: ZipEntry, builder: Trie.Builder) {
                val endIndex = zipEntry.name.lastIndexOf("/")
                if (endIndex > 0) {
                    val packageName = zipEntry.name.substring(0, endIndex)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-minify/groovy/build.gradle

                        }
                    }
                }
            }
        }
    
        protected void addEntry(JarOutputStream jarOutputStream, ZipEntry entry, ZipFile zip) {
            jarOutputStream.putNextEntry(new ZipEntry (entry.name))
            zip.getInputStream(entry).withCloseable { jarOutputStream << it }
            jarOutputStream.closeEntry()
    // tag::artifact-transform-minify[]
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/detection/JarFilePackageListerTest.groovy

                it.putNextEntry(new ZipEntry("com/a/b/c/"))
                it.putNextEntry(new ZipEntry("com/a/b/c/A.class"))
                it.putNextEntry(new ZipEntry("com/a/b/c/B.class"))
                it.putNextEntry(new ZipEntry("com/a/b/"))
                it.putNextEntry(new ZipEntry("com/a/b/C.class"))
                it.putNextEntry(new ZipEntry("com/"))
                it.putNextEntry(new ZipEntry("com/D.class"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/AbstractZipEntry.java

    import org.gradle.api.internal.file.archive.ZipEntry;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    abstract class AbstractZipEntry implements ZipEntry {
        private final java.util.zip.ZipEntry entry;
    
        public AbstractZipEntry(java.util.zip.ZipEntry entry) {
            this.entry = entry;
        }
    
        protected java.util.zip.ZipEntry getEntry() {
            return entry;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasher.java

            ZipEntry zipEntry = zipEntryContext.getEntry();
    
            if (isNotClassFile(zipEntry.getName())) {
                return null;
            }
    
            // A failure to read the zip entry content is a failure to read from the zip stream and should
            // be handled as a failure at the file level rather than at the entry level
            byte[] content = zipEntry.getContent();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top