Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for destroyables (0.22 sec)

  1. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

                    outputs.file('foo')
                    destroyables.register('bar')
                }
            """
            file('foo') << 'foo'
            file('bar') << 'bar'
    
            expect:
            2.times {
                fails 'a'
                failure.assertHasDescription('Task :a has both outputs and destroyables defined.  A task can define either outputs or destroyables, but not both.')
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

            given:
            withParallelThreads(2)
            buildFile << """
                def dir = rootProject.file("dir")
    
                aPing.destroyables.register dir
    
                bPing.outputs.file dir
            """
    
            expect:
            2.times {
                blockingServer.expectConcurrent(1, ":aPing", ":bPing")
                run ":aPing", ":bPing"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/tasks/incrementalBuild-customTaskClass/groovy/build.gradle

        from processTemplates
    }
    // end::inferred-task-dep-via-task[]
    
    
    // tag::adhoc-destroyable-task[]
    tasks.register('removeTempDir') {
        def tempDir = layout.projectDirectory.dir('tmpDir')
        destroyables.register(tempDir)
        doLast {
            tempDir.asFile.deleteDir()
        }
    }
    // end::adhoc-destroyable-task[]
    
    tasks.named('build') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/TaskNodeCodec.kt

        }
    
        private
        suspend fun WriteContext.writeDestroyablesOf(task: TaskInternal) {
            val destroyables = (task.destroyables as TaskDestroyablesInternal).registeredFiles
            if (destroyables.isEmpty) {
                writeBoolean(false)
            } else {
                writeBoolean(true)
                write(destroyables)
            }
        }
    
        private
        suspend fun ReadContext.readDestroyablesOf(task: TaskInternal) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/tasks/incrementalBuild-customTaskClass/kotlin/build.gradle.kts

        from(processTemplates)
    }
    // end::inferred-task-dep-via-task[]
    
    
    // tag::adhoc-destroyable-task[]
    tasks.register("removeTempDir") {
        val tmpDir = layout.projectDirectory.dir("tmpDir")
        destroyables.register(tmpDir)
        doLast {
            tmpDir.asFile.deleteRecursively()
        }
    }
    // end::adhoc-destroyable-task[]
    
    tasks.build {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/dsl/org.gradle.api.Task.xml

                </tr>
                <tr>
                    <td>outputs</td>
                </tr>
                <tr>
                    <td>localState</td>
                </tr>
                <tr>
                    <td>destroyables</td>
                </tr>
                <tr>
                    <td>temporaryDir</td>
                </tr>
                <tr>
                    <td>taskDependencies</td>
                </tr>
                <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskDestroyables.java

                visitor.visitDestroyableProperty(registeredPath);
            }
        }
    
        @Override
        public FileCollection getRegisteredFiles() {
            return fileCollectionFactory.resolving("destroyables", registeredPaths);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. platforms/enterprise/enterprise-operations/src/main/java/org/gradle/api/internal/tasks/execution/ResolveTaskMutationsBuildOperationType.java

     * Before task execution ({@link org.gradle.api.internal.tasks.execution.ExecuteTaskBuildOperationType}),
     * the mutations of the task need to be resolved. The mutations of a task are the locations it may modify,
     * e.g. its outputs, destroyables and local state. In order to resolve the mutations, the task input and output
     * properties are detected as well. Since Gradle 7.5, resolving of the mutations happens in a separate node
     * in the execution graph.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 10 08:07:59 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/PropertyVisitor.java

    import org.gradle.internal.fingerprint.FileNormalizer;
    import org.gradle.internal.fingerprint.LineEndingSensitivity;
    
    import javax.annotation.Nullable;
    
    /**
     * Visits properties of beans which are inputs, outputs, destroyables, local state, service references or software types.
     */
    public interface PropertyVisitor {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:21 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractCommandLineOrderTaskIntegrationTest.groovy

                        ${produces.collect { 'outputs.file file(' + quote(it) + ')' }.join('\n\t\t\t\t')}
                        ${destroys.collect { 'destroyables.register file(' + quote(it) + ')' }.join('\n\t\t\t\t')}
                        ${localState.collect { 'localState.register file(' + quote(it) + ')' }.join('\n\t\t\t\t')}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top