Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for unpackFile (0.22 sec)

  1. platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPacker.java

            if (treeType == TreeType.FILE) {
                if (isDirEntry) {
                    throw new IllegalStateException("Should be a file: " + treeName);
                }
                RegularFileSnapshot fileSnapshot = unpackFile(input, rootEntry, treeRoot, treeRoot.getName());
                snapshots.put(treeName, fileSnapshot);
                return input.getNextEntry();
            }
    
            if (!isDirEntry) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:19 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/files/archives/groovy/build.gradle

    // tag::zip[]
    // tag::tar[]
    plugins {
        id 'java'
    }
    
    // end::tar[]
    // end::zip[]
    
    // tag::unpack-archive-example[]
    tasks.register('unpackFiles', Copy) {
        from zipTree("src/resources/thirdPartyResources.zip")
        into layout.buildDirectory.dir("resources")
    }
    // end::unpack-archive-example[]
    
    // tag::unpack-archive-subset-example[]
    tasks.register('unpackLibsDirectory', Copy) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/files/archives/kotlin/build.gradle.kts

    // tag::zip[]
    // tag::tar[]
    plugins {
        java
    }
    
    // end::tar[]
    // end::zip[]
    
    // tag::unpack-archive-example[]
    tasks.register<Copy>("unpackFiles") {
        from(zipTree("src/resources/thirdPartyResources.zip"))
        into(layout.buildDirectory.dir("resources"))
    }
    // end::unpack-archive-example[]
    
    // tag::unpack-archive-subset-example[]
    tasks.register<Copy>("unpackLibsDirectory") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesArchivesIntegrationTest.groovy

        @UsesSample("files/archives")
        def "can unpack a ZIP file with #dsl dsl"() {
            given:
            def dslDir = sample.dir.file(dsl)
            executer.inDirectory(dslDir)
    
            when:
            succeeds("unpackFiles")
    
            then:
            def outputDir = dslDir.file("build/resources")
            outputDir.file("libs/first.txt").isFile()
            outputDir.file("libs/other.txt").isFile()
            outputDir.file("docs.txt").isFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top