Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 144 for forTask (0.16 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r34/NoSourceTaskOutcomeCrossVersionSpec.groovy

            (TaskSkippedResult)events.operations[0].result
        }
    
        private void runBuild(listener) {
            withConnection {
                ProjectConnection connection ->
                    connection.newBuild().forTasks('noSourceTask').addProgressListener(listener, EnumSet.of(OperationType.TASK)).run()
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r64/DaemonReuseCrossVersionSpec.groovy

            withConnection {
                def build = newBuild()
                build.setJvmArguments(NORMALIZED_BUILD_JVM_OPTS + "-Djava.io.tmpdir=${buildContext.getTmpDir().absolutePath}".toString())
                build.forTasks("help")
                build.run()
            }
        }
    
        private void runBuildViaCLI() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/ProblemProgressEventCrossVersionTest.groovy

                task baz {}
            """
    
    
            when:
            def listener = new ProblemProgressListener()
            withConnection { connection ->
                connection.newBuild()
                    .forTasks(":ba")
                    .addProgressListener(listener)
                    .setStandardError(System.err)
                    .setStandardOutput(System.out)
                    .addArguments("--info")
                    .run()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 06:47:12 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/ParameterValidatingConsumerConnection.java

            if (!targetVersionDetails.supportsRunTasksBeforeExecutingAction()) {
                if (operationParameters.getTasks() != null) {
                    throw Exceptions.unsupportedFeature("forTasks() method on BuildActionExecuter", targetVersionDetails.getVersion(), "3.5");
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/BasicProjectConfigurationProgressCrossVersionSpec.groovy

            withConnection {
                ProjectConnection connection ->
                    connection.newBuild()
                        .addProgressListener(events, [OperationType.TASK] as Set)
                        .forTasks("build")
                        .run()
            }
    
            then:
            events.tasks.size() == events.operations.size()
            events.operation("Task :buildSrc:a:compileJava")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/NestedBuildsProgressCrossVersionSpec.groovy

            when:
            try {
                withConnection {
                    ProjectConnection connection ->
                        connection.newBuild()
                            .forTasks('nested2')
                            .addProgressListener(events)
                            .run()
                }
            } catch (ListenerFailedException e) {
                caughtException = e.cause
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r41/BuildListenerCrossVersionSpec.groovy

            when:
            withConnection {
                ProjectConnection connection ->
                    connection.newBuild()
                        .setStandardOutput(output)
                        .forTasks("help")
                        .run()
            }
    
            then:
            listenersWereCalled()
        }
    
        void listenersWereCalled() {
            def result = output.toString()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r60/TestOutputCrossVersionSpec.groovy

                    }
                }
            """
        }
    
        def runTestAndCollectProgressEvents() {
            withConnection { ProjectConnection connection ->
                connection.newBuild().forTasks('test').addProgressListener({ event -> progressEvents << event } as org.gradle.tooling.events.ProgressListener).run()
            }
        }
    
        def getTestEvents() {
            getProgressEvents(TestFinishEvent)
        }
    
    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/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressDaemonErrorsCrossVersionSpec.groovy

            given:
            goodCode()
            def sync = server.expectAndBlock('sync')
    
            when:
            def result = []
            withConnection { ProjectConnection connection ->
                connection.newBuild().forTasks('test').addProgressListener({ ProgressEvent event ->
                    result << event
                    if (!killed) {
                        sync.waitForAllPendingCalls()
                        sync.releaseAll()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/IncompatibilityCrossVersionSpec.groovy

                // TestKit builds that use debug will set this to true
                it.embedded(true)
            }
    
            // Run the build
            withConnection { c ->
                c.newBuild().forTasks("myTask").run()
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top