Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for unzipTo (0.19 sec)

  1. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/SamplesWebProjectIntegrationTest.groovy

            when:
            super.sample sample
            succeeds('clean', 'assemble')
    
            then:
            TestFile tmpDir = file('unjar')
            sample.dir.file("build/libs/customized-1.0.war").unzipTo(tmpDir)
            tmpDir.assertHasDescendants(
                    'root.txt',
                    'META-INF/MANIFEST.MF',
                    'WEB-INF/classes/org/gradle/HelloServlet.class',
                    'WEB-INF/additional.xml',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

                    archiveFileName = 'test.zip'
                }
            '''
            when:
            run 'zip'
            then:
            def expandDir = file('expanded')
            file('build/test.zip').unzipTo(expandDir)
            expandDir.assertHasDescendants(
                'prefix/dir1/renamed_file1.txt',
                'prefix/renamed_file1.txt',
                'prefix/dir2/renamed_file2.txt',
                'scripts/dir1',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/samples/SamplesScalaCustomizedLayoutIntegrationTest.groovy

            result.assertTestClassesExecuted('org.gradle.sample.PersonSpec')
    
            // Check contents of Jar
            TestFile jarContents = file('jar')
            projectDir.file("build/libs/customized-layout-1.0.jar").unzipTo(jarContents)
            jarContents.assertHasDescendants(
                    'META-INF/MANIFEST.MF',
                    'org/gradle/sample/Named.class',
                    'org/gradle/sample/Person.class'
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/zip.kt

                        size = bytes.size.toLong()
                    }
                )
                zos.write(bytes)
                zos.closeEntry()
            }
        }
    }
    
    
    fun unzipTo(outputDirectory: File, zipFile: File) {
        ZipFile(zipFile).use { zip ->
            for (entry in zip.entries()) {
                unzipEntryTo(outputDirectory, zip, entry)
            }
        }
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 31 20:39:17 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/SamplesApplicationIntegrationTest.groovy

            succeeds('distZip')
    
            then:
            def distFile = dslDir.file('build/distributions/my-app-1.0.2.zip')
            distFile.assertIsFile()
    
            def installDir = dslDir.file('unzip')
            distFile.usingNativeTools().unzipTo(installDir)
    
            checkApplicationImage(installDir.file('my-app-1.0.2'), executableDir)
    
            where:
            dsl << ['groovy', 'kotlin']
            executableDir << ['bin', 'customBin']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperLoggingIntegrationTest.groovy

            given: "malformed distribution"
            // Repackage distribution with bin/gradle removed so permissions cannot be set
            TestFile tempUnzipDir = temporaryFolder.createDir("temp-unzip")
            distribution.binDistribution.unzipTo(tempUnzipDir)
            assert tempUnzipDir.file("gradle-${distribution.version.baseVersion.version}", "bin", "gradle").delete()
            TestFile tempZipDir = temporaryFolder.createDir("temp-zip-foo")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/samples/SamplesScalaQuickstartIntegrationTest.groovy

            result.assertTestClassesExecuted('org.gradle.sample.PersonSpec')
    
            // Check contents of Jar
            TestFile jarContents = file('jar')
            projectDir.file("build/libs/quickstart.jar").unzipTo(jarContents)
            jarContents.assertHasDescendants(
                    'META-INF/MANIFEST.MF',
                    'org/gradle/sample/Named.class',
                    'org/gradle/sample/Person.class'
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/samples/SamplesMixedJavaAndScalaIntegrationTest.groovy

            result.assertTestClassesExecuted('org.gradle.sample.PersonSpec')
    
            // Check contents of Jar
            TestFile jarContents = file('jar')
            projectDir.file("build/libs/mixed-java-and-scala-1.0.jar").unzipTo(jarContents)
            jarContents.assertHasDescendants(
                'META-INF/MANIFEST.MF',
                'org/gradle/sample/JavaPerson.class',
                'org/gradle/sample/Named.class',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. platforms/jvm/ear/src/integTest/groovy/org/gradle/plugins/ear/EarPluginIntegrationTest.groovy

            buildFile << """
    apply plugin: 'ear'
    
    dependencies {
        deploy files('moduleA.jar', 'moduleB.war')
    }
    """
            when:
            run 'assemble'
            file("build/libs/root.ear").unzipTo(file("unzipped"))
    
            then:
            def appXml = new XmlSlurper().parse(
                file('unzipped/META-INF/application.xml'))
            def modules = appXml.module
            modules[0].ejb.text() == 'moduleA.jar'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

                        try {
                            unzipTo(zippedFile, unzipDir)
                        } catch (IOException e) {
                            throw UncheckedException.throwAsUncheckedException(e)
                        }
                    }
    
                    static void unzipTo(File inputZip, File unzipDir) throws IOException {
                        inputZip.withInputStream { stream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top