Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 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/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)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/CompositeProjectSubstitutionCrossVersionSpec.groovy

                    .buildFinished(new ParameterizedLoadCompositeEclipseModels(workspace, EclipseProject), buildFinishedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            def eclipseProjects = buildFinishedHandler.result
    
            then:
            def b1Model = eclipseProjects.collectMany { collectProjects(it) }.find { it.name == "b1" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/crossVersionTest/groovy/org/gradle/api/internal/tasks/compile/tooling/JavaCompileTaskOperationResultCrossVersionTest.groovy

        }
    
        private ProgressEvents runBuild(task) {
            ProgressEvents events = ProgressEvents.create()
            withConnection {
                newBuild()
                    .forTasks(task)
                    .setStandardOutput(System.out)
                    .addProgressListener(events, OperationType.TASK)
                    .run()
            }
            events
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. 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)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TapiAgentInstrumentationCrossVersionSpec.groovy

            runDumpTaskWithTapi()
    
            then:
            agentWasNotApplied()
        }
    
        private void runDumpTaskWithTapi() {
            withConnection {
                buildOutput = withBuild {
                    it.forTasks("hello")
                }.stdout.toString()
            }
        }
    
        private void agentWasApplied() {
            agentStatusWas(true)
        }
    
        private void agentWasNotApplied() {
            agentStatusWas(false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/ConfigurationOnDemandIntegrationTest.groovy

            result.assertTasksExecutedInOrder(":api:foo", ":impl:bar")
        }
    
        def "supports buildSrc"() {
            file("buildSrc/src/main/java/FooTask.java") << """
                import org.gradle.api.DefaultTask;
                import org.gradle.api.tasks.TaskAction;
    
                public class FooTask extends DefaultTask {
                    @TaskAction public void logStuff(){
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskDependenciesCrossVersionSpec.groovy

        }
    
        private void runBuild(String... tasks) {
            withConnection {
                ProjectConnection connection ->
                    connection.newBuild()
                        .forTasks(tasks)
                        .addProgressListener(events, EnumSet.of(OperationType.TASK))
                        .run()
            }
        }
    
        private Set<? extends OperationDescriptor> tasks(String... paths) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/SystemPropertyPropagationCrossVersionTest.groovy

        }
    
        private void runTask(@DelegatesTo(value = BuildLauncher, strategy = Closure.DELEGATE_ONLY) Closure<?> launcherSpec = {}) {
            withConnection {
                def launcher = newBuild().forTasks('printSystemProperty')
                launcherSpec.delegate = launcher
                launcherSpec()
                launcher.setStandardOutput(out)
                launcher.run()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r60/ToolingApiPropertiesLoaderCrossVersionSpec.groovy

            '''.stripIndent()
    
            TestOutputStream stdout = new TestOutputStream()
    
            when:
            withConnection { connection -> connection.newBuild().setStandardOutput(stdout).forTasks('hello').run() }
            String output = stdout.toString()
    
            then:
            output.contains('system_property_available in buildSrc:                 true')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top