Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for runBuild (0.19 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/WorkItemProgressEventCrossVersionSpec.groovy

                }
            }
        }
    
        private ProgressEvents runBuild(String task, Set<OperationType> operationTypes) {
            ProgressEvents events = ProgressEvents.create()
            runBuild(task, events, operationTypes)
            events
        }
    
        private Object runBuild(String task, ProgressListener listener, Set<OperationType> operationTypes) {
            withConnection {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskOriginCrossVersionSpec.groovy

            """
    
            when:
            runBuild('b')
    
            then:
            task(':a').originPlugin.displayName == "build.gradle"
            task(':b').originPlugin.displayName == "script.gradle"
        }
    
        def "reports task origin for binary plugins"() {
            given:
            buildFile << """
                apply plugin: 'java'
            """
    
            when:
            runBuild('build')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/BuildProgressCrossVersionSpec.groovy

            // The main operations; there may be others
            def runBuild = events.operation("Run build")
            runBuild.descriptor.parent == null
            runBuild.failed
            runBuild.failures.size() == 1
    
            def configureBuild = events.operation("Configure build")
            configureBuild.descriptor.parent == runBuild.descriptor
            configureBuild.successful
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/ProjectConfigurationProgressEventCrossVersionSpec.groovy

            """
            file("included/settings.gradle") << """
                include 'c'
            """
        }
    
        def "reports successful project configuration progress events"() {
            when:
            runBuild("tasks")
    
            then:
            events.operations.size() == 6
            events.trees == events.operations
            containsSuccessfulProjectConfigurationOperation(":buildSrc", file("buildSrc"), ":")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskExecutionResultCrossVersionSpec.groovy

                    }
                }
            """
    
            when:
            runBuild('writeFile')
    
            then:
            with (taskSuccessResult(':writeFile')) {
                !upToDate
                !executionReasons.empty
            }
    
            when:
            runBuild('writeFile')
    
            then:
            with (taskSuccessResult(':writeFile')) {
                upToDate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ArgumentPassingCrossVersionTest.groovy

        def "Adding zero arguments is a no-op"() {
            expect:
            runBuild { launcher -> launcher.addArguments() }
        }
    
        def "Adding null argument throws NPE"() {
            when:
            runBuild { launcher -> launcher.addArguments(null as String) }
    
            then:
            thrown(NullPointerException)
    
            when:
            runBuild { launcher -> launcher.addArguments(null as List) }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskDependenciesCrossVersionSpec.groovy

            """
    
            when:
            runBuild(':compileJava')
    
            then:
            task(':compileJava').dependencies == tasks(':included:jar')
        }
    
        @TargetGradleVersion('>=3.0 <5.1')
        def "throws UnsupportedMethodException for task dependencies when target version does not support it"() {
            when:
            runBuild('tasks')
    
            and:
            task(':tasks').dependencies
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ContinuousBuildCancellationCrossVersionSpec.groovy

            when:
            runBuild {
                succeeds()
                cancel()
            }
    
            then:
            !result.output.contains("ctrl-d")
            result.output.contains(waitingMessage)
        }
    
        def "after cancelling a continuous build, we can subsequently run another"() {
            when:
            withConnection {
                runBuild {
                    succeeds()
                    cancel()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ContinuousBuildCrossVersionSpec.groovy

        def "can run continuous build with tooling api"() {
            when:
            def javaSrcFile = sourceDir.file("Thing.java") << 'public class Thing {}'
    
            then:
            runBuild {
                succeeds()
                waitBeforeModification javaSrcFile
                javaSrcFile.text = 'public class Thing { public static final int FOO=1; }'
                succeeds()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TransformProgressEventCrossVersionSpec.groovy

                    }
                }
            """
        }
    
        def "reports successful transform progress events"() {
            given:
            withFileSizerTransform()
    
            when:
            runBuild("resolve")
    
            then:
            def transformOperation = events.operation(applyTransform("FileSizer"))
            with(transformOperation) {
                assertIsTransform()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top