Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for withConnector (0.57 sec)

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

            server.expect(server.get("/custom-dist.zip").expectUserAgent(matchesNameAndVersion("Gradle Tooling API", GradleVersion.current().getVersion())).sendFile(distribution.binDistribution))
    
            and:
            toolingApi.withConnector {
                it.useDistribution(URI.create("http://localhost:${server.port}/custom-dist.zip"))
            }
    
            when:
            toolingApi.withConnection { connection ->
    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/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

                }
            }"""
            otherVersion.binDistribution.makeReadable()
            executer.withTasks('wrapper').run()
    
            when:
            toolingApi.withConnector { connector ->
                connector.useBuildDistribution()
            }
            toolingApi.withConnection { connection -> connection.newBuild().forTasks('check').run() }
    
            then:
            notThrown(Throwable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/UserHomeDirCrossVersionSpec.groovy

        }
    }
    """
            ByteArrayOutputStream baos = new ByteArrayOutputStream()
    
            when:
            toolingApi.withUserHome(userHomeDir)
            toolingApi.withConnector { connector ->
                connector.useGradleUserHomeDir(userHomeDir)
            }
            toolingApi.withConnection { connection ->
                BuildLauncher build = connection.newBuild()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r14/ToolingApiInitScriptCrossVersionIntegrationTest.groovy

                }
            """
            distro
        }
    
        String runWithInstallation(TestFile gradleHome) {
            toolingApi.requireIsolatedDaemons()
            toolingApi.withConnector { GradleConnector it ->
                it.useInstallation(new File(gradleHome.absolutePath))
            }
            withBuild { it.forTasks("echo") }.standardOutput
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedVersionIntegrationTest.groovy

        final URI distroZip = otherVersion.binDistribution.toURI()
    
        def setup() {
            toolingApi.withConnector { connector -> connector.useDistribution(distroZip) }
            settingsFile.touch()
        }
    
        def "tooling api reports an error when requesting a model using a gradle version that does not implement the tooling api"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiBackedGradleExecuter.groovy

        }
    
        void usingToolingConnection(File workingDir, Action<ProjectConnection> action) {
            def toolingApi = new ToolingApi(distribution, testDirectoryProvider)
            toolingApi.withConnector {
                it.forProjectDirectory(workingDir)
            }
    
            def systemPropertiesBeforeInvocation = new HashMap<String, Object>(System.getProperties())
    
            try {
                toolingApi.withConnection {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r18/ProjectLevelModelCrossVersionSpec.groovy

            then:
            result != null
            result.keySet() == ['test', 'a', 'b', 'c'] as Set
            result.values()*.value as Set == [':', ':a', ':b', ':b:c'] as Set
    
            when:
            withConnector { connector ->
                connector.searchUpwards(true)
                connector.forProjectDirectory(file("b"))
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/IncompatibilityCrossVersionSpec.groovy

            buildPluginWith("3.2.1")
            assertWorks()
        }
    
        private void assertWorks() {
            // So we don't try to use a classpath distribution
            toolingApi.requireDaemons()
    
            withConnector {
                // TestKit builds that use debug will set this to true
                it.embedded(true)
            }
    
            // Run the build
            withConnection { c ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiSpecification.groovy

            new BuildTestFixture(projectDir).withBuildInRootDir().multiProjectBuild(projectName, subprojects, cl)
        }
    
        void withConnector(@DelegatesTo(GradleConnector) @ClosureParams(value = SimpleType, options = ["org.gradle.tooling.GradleConnector"]) Closure cl) {
            try {
                toolingApi.withConnector(cl)
            } catch (GradleConnectionException e) {
                caughtGradleConnectionException = e
                throw e
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/m3/ToolingApiEclipseModelCrossVersionSpec.groovy

                include "child1", "child2", "child1:grandChild1"
                rootProject.name = 'root'
    '''
            projectDir.file('child1').mkdirs()
    
            when:
            toolingApi.withConnector { connector ->
                connector.searchUpwards(true)
                connector.forProjectDirectory(projectDir.file('child1'))
            }
            EclipseProject child = loadToolingModel(EclipseProject)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top