Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 87 for unzipTo (0.14 sec)

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

            result.assertTestClassesExecuted('org.gradle.PersonTest')
    
            and:
            // Check contents of jar
            TestFile tmpDir = file('jarContents')
            groovyProjectDir.file('build/libs/customized-layout.jar').unzipTo(tmpDir)
            tmpDir.assertHasDescendants(
                'META-INF/MANIFEST.MF',
                'org/gradle/Person.class'
            )
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/ZipCopyActionTest.groovy

        }
    
        void createsZipFile() {
            given:
            zip(dir("dir"), file("dir/file1"), file("file2"))
    
            when:
            TestFile expandDir = tmpDir.getTestDirectory().file("expanded")
            zipFile.unzipTo(expandDir)
    
            then:
            expandDir.file("dir/file1").assertContents(equalTo("contents of dir/file1"))
            expandDir.file("file2").assertContents(equalTo("contents of file2"))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/SamplesJavaCustomizedLayoutIntegrationTest.groovy

            javaprojectDir.file('build/libs/customized-layout.jar').assertIsFile()
    
            // Check contents of Jar
            TestFile jarContents = file('jar')
            javaprojectDir.file('build/libs/customized-layout.jar').unzipTo(jarContents)
            jarContents.assertHasDescendants(
                    'META-INF/MANIFEST.MF',
                    'org/gradle/Person.class'
            )
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/CommitDistribution.groovy

            if (!superGradleHome.isDirectory() || superGradleHome.listFiles({ it.isDirectory() } as FileFilter).size() == 0) {
                super.binDistribution.usingNativeTools().unzipTo(superGradleHome)
            }
            return new TestFile(superGradleHome.listFiles({ it.isDirectory() } as FileFilter).first())
        }
    
        static boolean isCommitDistribution(String version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/samples/SamplesScalaZincIntegrationTest.groovy

            executer.inDirectory(projectDir).withTasks('clean', 'build').run()
    
            then:
            // Check contents of Jar
            TestFile jarContents = file('jar')
            projectDir.file("build/libs/zinc.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
    - 1.6K bytes
    - Viewed (0)
  6. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/SamplesJavaQuickstartIntegrationTest.groovy

            // Check jar exists
            def jarFile = javaprojectDir.file("build/libs/quickstart-1.0.jar")
            jarFile.assertIsFile()
            // Check contents of Jar
            TestFile jarContents = file('jar')
            jarFile.unzipTo(jarContents)
            jarContents.assertHasDescendants(
                'META-INF/MANIFEST.MF',
                'org/gradle/Person.class',
                'org/gradle/resource.xml'
            )
    
            // Check contents of manifest
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/integtests/ApplicationIntegrationSpec.groovy

            checkApplicationImage('mega-app', installDir)
    
            def distZipFile = file('build/distributions/mega-app.zip')
            distZipFile.assertIsFile()
    
            def distZipDir = file('build/unzip')
            distZipFile.usingNativeTools().unzipTo(distZipDir)
            checkApplicationImage('mega-app', distZipDir.file('mega-app'))
    
            def distTarFile = file('build/distributions/mega-app.tar')
            distTarFile.assertIsFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 22:15:44 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/SamplesGroovyQuickstartIntegrationTest.groovy

            result.assertTestClassesExecuted('org.gradle.PersonTest')
    
            and:
            // Check contents of jar
            TestFile tmpDir = file('jarContents')
            groovyProjectDir.file('build/libs/quickstart.jar').unzipTo(tmpDir)
            tmpDir.assertHasDescendants(
                'META-INF/MANIFEST.MF',
                'org/gradle/Person.class',
                'org/gradle/Person$_closure1.class',
                'org/gradle/Person$_closure2.class',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/SamplesWebQuickstartIntegrationTest.groovy

            when:
            executer.withTasks('clean', 'build').run()
    
            then:
            // Check contents of War
            TestFile warContents = file('war-tmp')
            sample.dir.file("build/libs/quickstart.war").unzipTo(warContents)
            warContents.assertHasDescendants(
                    'META-INF/MANIFEST.MF',
                    'index.jsp',
                    'WEB-INF/classes/org/gradle/sample/Greeter.class',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DownloadableGradleDistribution.groovy

                    distributionZip.copyFrom(url)
    
                    System.out.println("unzipping ${distributionZip} to ${gradleHomeDir}")
                    distributionZip.usingNativeTools().unzipTo(versionDir)
    
                    markerFile.createFile()
                }
            }
    
            distributionZip.assertIsFile()
            gradleHomeDir.assertIsDir()
        }
    
        abstract protected URL getDownloadURL();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top