Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for binDistribution (0.28 sec)

  1. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiRemoteIntegrationTest.groovy

            download.successful
    
            !download.statusEvents.empty
    
            download.statusEvents.each { statusEvent ->
                def event = statusEvent.event
                assert event.displayName == "Download $distUri ${event.progress}/${event.total} bytes completed"
                assert event.total == distribution.binDistribution.length()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpIntegrationTest.groovy

            given:
            server.expect(server.head("/$TEST_DISTRIBUTION_URL"))
            prepareWrapper(getDefaultBaseUrl())
            server.expect(server.get("/$TEST_DISTRIBUTION_URL").sendFile(distribution.binDistribution))
    
            when:
            def result = wrapperExecuter.withTasks('hello').run()
    
            then:
            assertThat(result.output, containsString('hello'))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/AbstractWrapperIntegrationSpec.groovy

            def distDir = userHomeDir.file("wrapper/dists/${FilenameUtils.getBaseName(distribution.binDistribution.absolutePath)}").assertIsDir()
            assert distDir.listFiles().length == 1
            distDir.listFiles()[0].file("gradle-${distribution.version.baseVersion.version}").assertIsDir()
        }
    
        void prepareWrapper(URI distributionUri = distribution.binDistribution.toURI(), Action<GradleExecuter> action = Actions.doNothing()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpsIntegrationTest.groovy

            server.expect(server.get("/$TEST_DISTRIBUTION_URL")
                .expectUserAgent(matchesNameAndVersion("gradlew", Download.UNKNOWN_VERSION))
                .sendFile(distribution.binDistribution))
    
            when:
            result = wrapperExecuter.withTasks('hello').run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DefaultGradleDistribution.groovy

        private final TestFile gradleHomeDir;
        private final TestFile binDistribution;
    
        DefaultGradleDistribution(GradleVersion gradleVersion, TestFile gradleHomeDir, TestFile binDistribution) {
            this.version = gradleVersion;
            this.gradleHomeDir = gradleHomeDir;
            this.binDistribution = binDistribution;
        }
    
        @Override
        String toString() {
            return version.toString();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:09:27 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            buildFile << """
            wrapper {
                distributionUrl = '${otherVersion.binDistribution.toURI()}'
            }
            task check {
                doLast {
                    assert gradle.gradleVersion == '${otherVersion.version.version}'
                }
            }"""
            otherVersion.binDistribution.makeReadable()
            executer.withTasks('wrapper').run()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperChecksumVerificationTest.groovy

            sha256().hashFile(distribution.binDistribution).toZeroPaddedString(sha256().hexDigits)
        }
    
        def "wrapper preserves new checksum if it was provided in properties"() {
            given:
            configureServer(false)
            def releasedDistribution = IntegrationTestBuildContext.INSTANCE.distribution("7.5")
            prepareWrapper(releasedDistribution.binDistribution.toURI())
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperBadArchiveTest.groovy

            server.expect(server.get(GRADLE_BIN_ZIP).sendFile(badArchive))
            server.expect(server.get(GRADLE_BIN_HASH).missing())
            server.expect(server.get(GRADLE_BIN_ZIP).sendFile(distribution.binDistribution))
            server.start()
    
            prepareWrapperWithGradleBin()
    
            when:
            def success = wrapperExecuter.run()
    
            then:
            assertSucces(success)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperConcurrentDownloadTest.groovy

        @Rule BlockingHttpServer server = new BlockingHttpServer()
    
        def setup() {
            server.expect(server.head("/gradle-bin.zip"))
            server.expect(server.get("/gradle-bin.zip").sendFile(distribution.binDistribution))
            server.start()
        }
    
        @Issue("https://issues.gradle.org/browse/GRADLE-2699")
        def "concurrent downloads do not stomp over each other"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. 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)
Back to top