Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for withBuild (0.14 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/DisabledTaskExecutionOnIncludedBuildsCrossVersionSpec.groovy

            def includedSelector = invocations[0].taskSelectors[0]
    
            when:
            withBuild { BuildLauncher launcher ->
                launcher.forLaunchables(includedSelector)
            }
    
            then:
            thrown(BuildException)
    
            when:
            withBuild { BuildLauncher launcher ->
                launcher.forLaunchables(includedTask)
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r66/CommandLineOptionsCrossVersionSpec.groovy

            when:
            file("gradle.properties") << "org.gradle.workers.max=12"
            def result = withBuild()
    
            then:
            result.standardOutput.contains("max workers: 12")
        }
    
        def "can specify options using command-line arguments"() {
            when:
            def result = withBuild { BuildLauncher launcher ->
                launcher.withArguments("--max-workers", "12")
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/BuildInvocationsCrossVersionSpec.groovy

            TaskSelector selectorT2 = model.taskSelectors.find { it.name == 't2' }
            def result = withBuild { BuildLauncher it ->
                it.forLaunchables(selectorT1, selectorT2)
            }
            then:
            result.result.assertTasksExecutedInOrder(':t1', ':b:c:t1', ':b:t2', ':b:c:t2')
    
            when:
            result = withBuild { BuildLauncher it ->
                it.forLaunchables(selectorT2, selectorT1)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r15/CombiningCommandLineArgumentsCrossVersionSpec.groovy

        @Issue("GRADLE-2635")
        def "can configure build file name and logging"() {
            file('buildX.gradle') << "logger.info('info message')"
    
            when:
            def out = withBuild { it.withArguments('-b', 'buildX.gradle', '-i') }.standardOutput
    
            then:
            out.contains('info message')
        }
    
        //below was working as expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultPluginConfigurationExpander.java

                }
                model = model.withBuild(build);
            }
            Reporting reporting = model.getReporting();
            if (reporting != null) {
                expandReport(reporting.getPlugins());
            }
            return model.withBuild(build);
        }
    
        private List<Plugin> expandPlugin(List<Plugin> oldPlugins) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

            file("build.gradle") << """
            logger.debug("debugging stuff")
            logger.info("infoing stuff")
    """
    
            when:
            String debug = withBuild { it.withArguments('-d') }.standardOutput
    
            and:
            String info = withBuild { it.withArguments('-i') }.standardOutput
    
            then:
            debug.count("debugging stuff") == 1
            debug.count("infoing stuff") == 1
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildLookupIntegrationTest.groovy

                assert gradle.includedBuilds.empty
            """)
            includeBuild(buildB)
            def buildC = singleProjectBuild("buildC") {
            }
            validationTask(buildA.buildFile, "withBuild", """
                assert gradle.includedBuild("buildB").name == "buildB"
                assert gradle.includedBuild("buildC").name == "buildC"
                assert gradle.includedBuild("buildC").projectDir == file('${buildC.toURI()}')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 06 08:15:28 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r15/ToolingApiConfigurationOnDemandCrossVersionSpec.groovy

            file("impl/build.gradle") << "task bar(dependsOn: ':api:foo')"
            file("other/build.gradle") << "assert false: 'should not be evaluated'"
    
            when:
            withBuild { it.forTasks(":impl:bar") }
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

            Model m = model.withPreserveModelVersion(true);
            assertEquals("4.1.0", new MavenModelVersion().getModelVersion(m));
        }
    
        @Test
        void testV4ModelPriority() {
            Model m = model.withBuild(Build.newInstance()
                    .withPlugins(Collections.singleton(Plugin.newInstance()
                            .withExecutions(Collections.singleton(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Oct 16 13:44:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TapiAgentInstrumentationCrossVersionSpec.groovy

            when:
            runDumpTaskWithTapi()
    
            then:
            agentWasNotApplied()
        }
    
        private void runDumpTaskWithTapi() {
            withConnection {
                buildOutput = withBuild {
                    it.forTasks("hello")
                }.stdout.toString()
            }
        }
    
        private void agentWasApplied() {
            agentStatusWas(true)
        }
    
        private void agentWasNotApplied() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top