Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for destroys (0.21 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/tasks/Destroys.java

     * or output) cannot execute concurrently with a task that destroys this file. This is useful for tasks that
     * clean up after other tasks such as `clean`.</p>
     *
     * @since 4.0
     */
    @Documented
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.METHOD, ElementType.FIELD})
    public @interface Destroys {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 03:14:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/ProducerTaskCommandLineOrderIntegrationTest.groovy

        def "producer task that finalizes a destroyer task will run after the destroyer even when ordered first (type: #type)"() {
            def foo = subproject(':foo')
            def bar = subproject(':bar')
    
            def cleanFoo = foo.task('cleanFoo').destroys('build/foo')
            def cleanBar = bar.task('cleanBar').destroys('build/bar')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/service/scopes/ExecutionGlobalServices.java

    import org.gradle.api.tasks.CacheableTask;
    import org.gradle.api.tasks.Classpath;
    import org.gradle.api.tasks.CompileClasspath;
    import org.gradle.api.tasks.Console;
    import org.gradle.api.tasks.Destroys;
    import org.gradle.api.tasks.IgnoreEmptyDirectories;
    import org.gradle.api.tasks.Input;
    import org.gradle.api.tasks.InputDirectory;
    import org.gradle.api.tasks.InputFile;
    import org.gradle.api.tasks.InputFiles;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

            2.times {
                blockingServer.expectConcurrent(1, ":a:aPing", ":b:bPing")
                run ":a:aPing", ":b:bPing"
            }
        }
    
        def "tasks are not run in parallel if destroy files overlap with input files (destroy first)"() {
            given:
            withParallelThreads(2)
    
            buildFile << """
                def foo = file("foo")
    
                destroyerPing.destroyables.register foo
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeleteTaskIntegrationTest.groovy

            then:
            !file('foo').exists()
            !file('bar').exists()
            !file('baz').exists()
        }
    
        @ToBeFixedForConfigurationCache(skip = INVESTIGATE)
        def "deleted files show up in task destroys"() {
            buildFile << """
                import org.gradle.internal.properties.PropertyVisitor
                import org.gradle.internal.properties.bean.PropertyWalker
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

            Console           | '@Console'                                                 | Boolean        | null
            Destroys          | '@Destroys'                                                | FileCollection | null
            LocalState        | '@LocalState'                                              | FileCollection | null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart1IntegrationTest.groovy

                details == "The '@${ann.simpleName}' annotation cannot be used in this context"
                solutions == [
                    'Remove the property',
                    'Use a different annotation, e.g one of @Console, @Destroys, @Inject, @Input, @InputDirectory, @InputFile, @InputFiles, @Internal, @LocalState, @Nested, @OptionValues, @OutputDirectories, @OutputDirectory, @OutputFile, @OutputFiles, @ReplacedBy or @ServiceReference',
                ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultiset.java

         * modifications, or we'll modify the already-built ImmutableMultiset.
         */
        boolean buildInvoked = false;
        /**
         * In the event of a setCount(elem, 0) call, we may need to remove elements, which destroys the
         * insertion order property of ObjectCountHashMap. In that event, we need to convert to a
         * ObjectCountLinkedHashMap, but we need to know we did that so we can convert back.
         */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    |`@OutputDirectory`
    |Property is an output directory for the task
    
    |`@OutputDirectories`
    |Property is one or more output directories for the task
    
    |`@Destroys`
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            assertTaskOutputCached(fileTask)
    
            when:
            cleanBuildDir()
            withBuildCache().run(fileTask, localStateDirTask)
            then:
            // FIXME Loading from cache destroys the overlap directory, but the task should not be loaded from cache
            fileTaskOutput.assertDoesNotExist()
            localStateDirTaskOutput.assertExists()
            // Task was loaded from cache, so local state was removed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
Back to top