Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for whenObjectRemoved (0.19 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/DelegatingDomainObjectSet.java

            whenObjectAdded(ConfigureUtil.configureUsing(action));
        }
    
        @Override
        public Action<? super T> whenObjectRemoved(Action<? super T> action) {
            return delegate.whenObjectRemoved(action);
        }
    
        @Override
        public void whenObjectRemoved(Closure action) {
            whenObjectRemoved(ConfigureUtil.configureUsing(action));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 11 01:39:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultDomainObjectCollectionTest.groovy

        }
    
        def callsClosureWithRemovedObjectAsParameterWhenObjectRemoved() {
            def seen = []
            def closure = { seen << it }
    
            container.add("a");
            container.whenObjectRemoved(closure)
    
            when:
            container.remove("a")
    
            then:
            seen == ["a"]
    
            when:
            container.remove("a")
            container.remove("b")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 16 23:50:58 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/NamedDomainObjectContainerDelegate.kt

        override fun getCollectionSchema(): NamedDomainObjectCollectionSchema =
            delegate.collectionSchema
    
        override fun whenObjectRemoved(action: Action<in T>): Action<in T> =
            delegate.whenObjectRemoved(action)
    
        override fun whenObjectRemoved(action: Closure<Any>) =
            delegate.whenObjectRemoved(action)
    
        override fun findAll(spec: Closure<Any>): MutableSet<T> =
            delegate.findAll(spec)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:18:33 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/CompositeDomainObjectSet.java

            return super.whenObjectAdded(Actions.filter(action, uniqueSpec));
        }
    
        @Override
        public Action<? super T> whenObjectRemoved(Action<? super T> action) {
            return super.whenObjectRemoved(Actions.filter(action, notInSpec));
        }
    
        public void addCollection(DomainObjectCollection<? extends T> collection) {
            if (!getStore().containsCollection(collection)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/CustomNamedDomainObjectCollectionTest.groovy

            return null
        }
    
        @Override
        void whenObjectAdded(Closure action) {
    
        }
    
        @Override
        Action<? super T> whenObjectRemoved(Action<? super T> action) {
            return null
        }
    
        @Override
        void whenObjectRemoved(Closure action) {
    
        }
    
        @Override
        void all(Action<? super T> action) {
    
        }
    
        @Override
        void all(Closure action) {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:31 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/TaskContainerDelegate.kt

            delegate.collectionSchema
    
        override fun whenObjectRemoved(action: Action<in Task>): Action<in Task> =
            delegate.whenObjectRemoved(action)
    
        override fun whenObjectRemoved(action: Closure<Any>) =
            delegate.whenObjectRemoved(action)
    
        override fun findAll(spec: Closure<Any>): MutableSet<Task> =
            delegate.findAll(spec)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:18:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectListTest.groovy

            Action<String> addAction = Mock()
            Action<String> removeAction = Mock()
    
            given:
            list.add('a')
            list.all(addAction)
            list.whenObjectRemoved(removeAction)
    
            when:
            list.set(0, 'b')
    
            then:
            1 * removeAction.execute('a')
            1 * addAction.execute('b')
            0 * removeAction._
            0 * addAction._
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:31 UTC 2023
    - 13K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectCollection.java

        }
    
        @Override
        public Action<? super T> whenObjectRemoved(Action<? super T> action) {
            eventRegister.registerRemoveAction(type, decorate(action));
            return action;
        }
    
        @Override
        public void whenObjectRemoved(Closure action) {
            whenObjectRemoved(toAction(action));
        }
    
        private Action<? super T> decorate(Action<? super T> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. platforms/software/signing/src/main/java/org/gradle/plugins/signing/SigningExtension.java

            final List<Sign> result = new ArrayList<>();
            publications.all(publication -> result.add(createSignTaskFor((PublicationInternal<?>) publication)));
            publications.whenObjectRemoved(publication -> {
                final TaskContainer tasks = project.getTasks();
                final Task task = tasks.getByName(determineSignTaskNameForPublication(publication));
                task.setEnabled(false);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

        def "can add action to execute only when object removed"() {
            containerAllowsElementRemoval()
    
            def action = Mock(Action)
    
            addToContainer(c)
    
            when:
            container.whenObjectRemoved(action)
    
            then:
            // Does not fire for existing elements
            0 * action._
    
            when:
            addToContainer(a)
            container.remove(c)
            container.remove(a)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
Back to top