Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/TaskProperties.java

    import org.gradle.internal.properties.bean.PropertyWalker;
    import org.gradle.internal.reflect.validation.TypeValidationContext;
    
    /**
     * A view of the properties of a task.
     *
     * This includes inputs, outputs, destroyables and local state properties.
     *
     * Once created, the view is immutable and registering additional or changing existing task properties will not be detected.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 16 23:32:26 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. 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)
  9. subprojects/core/src/test/groovy/org/gradle/execution/plan/AbstractExecutionPlanSpec.groovy

            task.compareTo(_ as TaskInternal) >> { TaskInternal taskInternal ->
                return path.compareTo(taskInternal.identityPath)
            }
            task.outputs >> emptyTaskOutputs()
            task.destroyables >> emptyTaskDestroys()
            task.localState >> emptyTaskLocalState()
            task.inputs >> emptyTaskInputs()
            task.requiredServices >> emptyTaskRequiredServices()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/PreCreateOutputParentsStepTest.groovy

            given:
            def outputDir = file("outDir")
            def outputFile = file("parent/outFile")
            def localStateFile = file("local-state/stateFile")
            def destroyableFile = file("destroyable/file.txt")
    
            when:
            step.execute(work, context)
    
            then:
            _ * work.visitOutputs(_ as File, _ as UnitOfWork.OutputVisitor) >> { File workspace, UnitOfWork.OutputVisitor visitor ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:22 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top