Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for forTask (0.12 sec)

  1. 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)
  2. 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)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressCrossVersionSpec.groovy

            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
                    connection.model(BuildInvocations.class).forTasks('test').addProgressListener(events, EnumSet.of(OperationType.TEST)).get()
            }
    
            then: "test progress events must be forwarded to the attached listeners"
            !events.tests.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go

    	tcases := []struct {
    		name   string
    		masks  [][]int
    		orMask string
    	}{
    		{
    			name:   "Mask 01 OR mask 00",
    			masks:  [][]int{{0}, {}},
    			orMask: "01",
    		},
    		{
    			name:   "Mask 10 OR mask 10",
    			masks:  [][]int{{1}, {1}},
    			orMask: "10",
    		},
    		{
    			name:   "Mask 01 OR mask 10",
    			masks:  [][]int{{0}, {1}},
    			orMask: "11",
    		},
    		{
    			name:   "Mask 11 OR mask 11",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiPhasedBuildActionIntegrationTest.groovy

            def models = runPhasedBuildAction(new FetchPartialCustomModelForEachProject(), new FetchCustomModelForEachProject()) {
                // Empty list means "run tasks defined by build logic or default tasks"
                forTasks([])
            }
    
            then:
            def messages = models.left
            messages.size() == 2
            messages[0] == "It works from project :"
            messages[1] == "It works from project :a"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ConcurrentToolingApiIntegrationSpec.groovy

                try {
                    def model = connection.getModel(IdeaProject)
                    assert model != null
                    //a bit more stress:
                    connection.newBuild().forTasks('tasks').run()
                } catch (Exception e) {
                    throw new RuntimeException("""We might have hit a concurrency problem.
    See the full stacktrace and the list of causes to investigate""", e);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            when:
            toolingApi.withConnector { connector ->
                connector.useBuildDistribution()
            }
            toolingApi.withConnection { connection -> connection.newBuild().forTasks('check').run() }
    
            then:
            notThrown(Throwable)
        }
    
        def "tooling api searches up from the project directory to find the wrapper properties"() {
            settingsFile << "include 'child'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

            buildFile getProblemReportTaskString(taskActionMethodBody)
        }
    
        def runTask() {
            def listener = new ProblemProgressListener()
            withConnection { connection ->
                connection.newBuild().forTasks('reportProblem')
                    .addProgressListener(listener)
                    .run()
            }
            return listener.problems
        }
    
        def "Failing executions produce problems"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r73/DependencyArtifactDownloadProgressEventCrossVersionTest.groovy

            when:
            def events = ProgressEvents.create()
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                collectOutputs(build)
                build.forTasks("resolve")
                build.addProgressListener(events, OperationType.FILE_DOWNLOAD)
                    .run()
            }
    
            then:
            thrown(BuildException)
    
            events.operations.size() >= 4
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top