Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for forTask (0.19 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildEnvironmentCrossVersionSpec.groovy

            when:
            ByteArrayOutputStream out = new ByteArrayOutputStream()
            withConnection { ProjectConnection connection ->
                connection.newBuild().setEnvironmentVariables(["var": "val"]).setStandardOutput(out).forTasks('printEnv').run()
            }
    
            then:
            out.toString().contains("<${["var": "val"]}>")
        }
    
        @TargetGradleVersion(">=4.11")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r63/DistributionChecksumCrossVersionSpec.groovy

                connection.newBuild().forTasks("wrapper").run()
            }
            file('gradle/wrapper/gradle-wrapper.properties') << 'distributionSha256Sum=bad'
    
            when:
            def connector = this.connector()
            connector.useBuildDistribution()
            withConnection(connector) { ProjectConnection connection ->
                connection.newBuild().forTasks("help").run()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

                    file('sysProperty.txt') << System.getProperty('sysProperty')
                }
            }
    """
    
            when:
            withConnection { ProjectConnection it ->
                it.newBuild().forTasks('printProperty').withArguments('-DsysProperty=welcomeToTheJungle').run()
            }
    
            then:
            file('sysProperty.txt').text.contains('welcomeToTheJungle')
        }
    
        def "can use custom build file"() {
    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. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskInputFilePropertiesIntegrationTest.groovy

        def "allows @InputFiles of task with no actions to be null"() {
            buildFile << """
                class FooTask extends DefaultTask {
                   @InputFiles
                   FileCollection bar
                }
    
                task foo(type: FooTask)
            """
    
            when:
            run "foo"
    
            then:
            executed ":foo"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:04:02 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r87/ProblemProgressEventCrossVersionTest.groovy

            //  issue https://github.com/gradle/gradle/issues/27484
        }
    
        def runTask() {
            def listener = new ProblemProgressListener()
            withConnection { connection ->
                connection.newBuild().forTasks('reportProblem')
                    .addProgressListener(listener)
                    .run()
            }
            return listener.problems
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 11:36:58 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/ClosedProjectSubstitutionCrossVersionSpec.groovy

                    .buildFinished(new LoadEclipseModel(workspace), buildFinishedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            then:
            def child2 = buildFinishedHandler.result.children.find { it.name == "child2" }
            child2.projectDependencies.isEmpty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultPhasedBuildActionExecuter.java

        }
    
        @Override
        public BuildActionExecuter<Void> forTasks(String... tasks) {
            operationParamsBuilder.setTasks(tasks != null ? Arrays.asList(tasks) : null);
            return getThis();
        }
    
        @Override
        public BuildActionExecuter<Void> forTasks(Iterable<String> tasks) {
            operationParamsBuilder.setTasks(tasks != null ? CollectionUtils.toList(tasks) : null);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r23/StandardStreamsCrossVersionSpec.groovy

    task log {
        doLast {
            println "task log message"
        }
    }
    """
    
            when:
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                build.forTasks("log")
                build.run()
            }
    
            then:
            !stdOutAndErr.stdOut.contains("log message")
            !stdOutAndErr.stdErr.contains("log message")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultBuildActionExecuter.java

        }
    
        @Override
        public BuildActionExecuter<T> forTasks(String... tasks) {
            operationParamsBuilder.setTasks(tasks != null ? Arrays.asList(tasks) : null);
            return getThis();
        }
    
        @Override
        public BuildActionExecuter<T> forTasks(Iterable<String> tasks) {
            operationParamsBuilder.setTasks(tasks != null ? CollectionUtils.toList(tasks) : null);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildProgressCrossVersionSpec.groovy

                }
            """
    
            when:
            def events = ProgressEvents.create()
    
            withConnection {
                ProjectConnection connection ->
                    connection.newBuild().forTasks('publish')
                        .addProgressListener(events).run()
            }
    
            then:
            def roots = events.operations.findAll { it.parent == null }.collect { it.descriptor.name }
    
            roots == [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top