Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 495 for TASK (0.31 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheJavaSerializationIntegrationTest.groovy

                }
    
                task ok(type: SomeTask)
            """
    
            when:
            configurationCacheRun "ok"
    
            then: "bean is serialized before task runs"
            outputContains("bean.value = 42")
    
            when:
            configurationCacheRun "ok"
    
            then:
            outputContains("bean.value = 42")
        }
    
        def "restores task fields whose value is Externalizable"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/JavaPluginImplementation.groovy

                        project.getTasks().register("thing", t -> {
                            t.doLast(new Action<Task>() {
                                public void execute(Task t) {
                                    Object value = ${read.javaExpression};
                                    System.out.println("task = " + value);
                                }
                            });
                        });
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/KotlinGradlePluginInitIntegrationTest.groovy

            assertFunctionalTestPassed("org.example.SomeThingPluginFunctionalTest", "can run task")
    
            when:
            run('check', '--rerun-tasks')
    
            then:
            assertTestPassed("org.example.SomeThingPluginTest", "plugin registers task")
            assertFunctionalTestPassed("org.example.SomeThingPluginFunctionalTest", "can run task")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/RunTasksBeforeRunActionCrossVersion.groovy

    @TargetGradleVersion('>=3.5')
    class RunTasksBeforeRunActionCrossVersion extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                task hello {
                    doLast {
                        println "hello"
                    }
                }
    
                task bye(dependsOn: hello) {
                    doLast {
                        println "bye"
                    }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/TaskReferenceCodec.kt

            val isTaskFromSameProject = delegate is Task && delegate.project == value.project
    
            return isTaskReferencesAllowed && isTaskFromSameProject
        }
    
        override suspend fun ReadContext.decode(): Task? = when (readEnum<ReferenceType>()) {
            ReferenceType.SELF_REF ->
                isolate.owner.delegate as Task
    
            ReferenceType.TASK_REF -> {
                val taskName = readString()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProject.java

            return taskContainer.create(task).configure(configureClosure);
        }
    
        public Task task(Object task, Closure configureClosure) {
            return task(task.toString(), configureClosure);
        }
    
        @Override
        public Task task(Map options, String task) {
            return taskContainer.create(addMaps(Cast.uncheckedNonnullCast(options), singletonMap(Task.TASK_NAME, task)));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/build_cache.adoc

    Wrongly declared task inputs can lead to cache misses especially when containing volatile data or absolute paths.
    (See <<incremental_build.adoc#sec:task_inputs_outputs,the section called "Task inputs and outputs">> on what should be declared as inputs and outputs.)
    
    NOTE: The task path is _not_ an input to the build cache key.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 11:30:10 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/AbstractConfigurationAttributesResolveIntegrationTest.groovy

                    }
                    task fooJar(type: Jar) {
                       archiveBaseName = 'c-foo'
                    }
                    task barJar(type: Jar) {
                       archiveBaseName = 'c-bar'
                    }
                    task foo2Jar(type: Jar) {
                       archiveBaseName = 'c-foo2'
                    }
                    task bar2Jar(type: Jar) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 17:30:11 UTC 2024
    - 64K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

        private Object[] useOverlappingOutputFiles() {
            buildFile << """
                task first(type: OutputFileTask)
                task second(type: OutputFileTask) {
                    // second's message needs to be different so we don't detect the file has unchanged
                    message = "Generated by task " + path
                }
                task cleanSecond(type: Delete) {
                    delete second
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
  10. src/internal/trace/summary.go

    			// N.B. No need to add the region to a task; the EventRegionBegin already handled it.
    		} else {
    			// This is an "end" without a start. Just fabricate the region now.
    			sd = &UserRegionSummary{Name: r.Type, TaskID: r.Task}
    			// Associate the region and current goroutine to the task.
    			task := s.getOrAddTask(r.Task)
    			task.Goroutines[g.ID] = g
    			task.Regions = append(task.Regions, sd)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top