Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for toolingapi (0.28 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ToolingApiPolymorphismCrossVersionTest.groovy

                rootProject.name = 'root'
            """
            buildFile << """
                plugins {
                    id("my.plugin")
                }
            """
    
            when:
            def model = toolingApi.withConnection() { connection -> connection.getModel(BaseModel) }
    
            then:
            assertModelIsPolymorphic(model)
        }
    
        def "supports nested model polymorphism"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 11:03:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/java/JavaIDEModelPerformanceTest.groovy

        def setup() {
            runner.minimumBaseVersion = "2.11"
        }
    
        def "get IDE model for Eclipse"() {
            given:
            setupRunner()
    
            runner.toolingApi("Eclipse model") {
                it.model(EclipseProject)
            }.run { builder ->
                def model = builder.get()
                // we must actually do something to highlight some performance issues
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildBuildActionExecuterCrossVersionSpec.groovy

                tasks.register('doSomething') {
                    doLast {
                        println 'do something'
                    }
                }
            """
    
            when:
            toolingApi.withConnection { ProjectConnection connection ->
                def buildAction = connection.action(new LoadCompositeModel(GradleProject))
                collectOutputs(buildAction)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildModelBuilderCrossVersionSpec.groovy

                tasks.register('doSomething') {
                    doLast {
                        println 'do something'
                    }
                }
            """
    
            when:
            toolingApi.withConnection { ProjectConnection connection ->
                ModelBuilder<GradleProject> modelBuilder = connection.model(GradleProject.class)
                collectOutputs(modelBuilder)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r34/BuildActionCrossVersionSpec.groovy

    class BuildActionCrossVersionSpec extends ToolingApiSpecification {
    
        @Issue("https://github.com/gradle/gradle/issues/1180")
        def "can load custom action from url containing whitespaces"() {
            setup:
            toolingApi.requireIsolatedDaemons()
            def builder = new GradleBackedArtifactBuilder(new NoDaemonGradleExecuter(dist, temporaryFolder).withWarningMode(null), temporaryFolder.testDirectory.file("action"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TapiAgentInstrumentationCrossVersionSpec.groovy

        private String buildOutput
    
        def setup() {
            // TODO(mlopatkin) Figure a way to have agent-based instrumentation in the embedded TAPI mode.
            toolingApi.requireDaemons()
        }
    
        def "agent is enabled in TAPI by default"() {
            withDumpAgentStatusTask()
    
            when:
            runDumpTaskWithTapi()
    
            then:
            agentWasApplied()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/java/JavaIDETaskExecutionPerformanceTest.groovy

        def setup() {
            runner.minimumBaseVersion = "2.11"
        }
    
        def "run compileJava via Tooling API"() {
            given:
            setupRunner()
    
            runner.toolingApi("Run task") {
                it.newBuild()
            }.run { builder ->
                builder.addProgressListener(new ProgressListener() {
                    @Override
                    void statusChanged(ProgressEvent event) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/DisabledTaskExecutionOnIncludedBuildsCrossVersionSpec.groovy

            settingsFile << """
                includeBuild 'includedBuild'
            """
            singleProjectBuildInSubfolder("includedBuild")
    
            when:
            withConnection(toolingApi.connector().forProjectDirectory(projectDir.file('sub1')).searchUpwards(true)) {
                BuildInvocations invocations = getModel(BuildInvocations)
                def task = invocations.tasks.find { it.name.contains 'tasks' }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/AbstractKotlinScriptModelCrossVersionTest.groovy

    @CompileStatic
    abstract class AbstractKotlinScriptModelCrossVersionTest extends ToolingApiSpecification implements KotlinDslTestProjectInitiation {
    
        def setup() {
            // Required for the lenient classpath mode
            toolingApi.requireDaemons()
            // Only Kotlin settings scripts
            settingsFile.delete()
            file("settings.gradle.kts").touch()
            // Gradle 6.5.1 instrumented jar cache has concurrency issues causing flakiness
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/RetryConditions.groovy

                return cleanProjectDir(specification)
            }
            false
        }
    
        static boolean cleanProjectDir(Object specification) {
            if (specification.hasProperty("toolingApi")) {
                specification.toolingApi.cleanUpIsolatedDaemonsAndServices()
            }
            if (specification.hasProperty("caughtGradleConnectionException")) {
                specification.caughtGradleConnectionException = null
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top