Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for TaskCollection (0.17 sec)

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

    import org.gradle.api.specs.Spec;
    
    /**
     * A {@code TaskCollection} contains a set of {@link Task} instances, and provides a number of query methods.
     *
     * @param <T> The type of tasks which this collection contains.
     */
    public interface TaskCollection<T extends Task> extends NamedDomainObjectSet<T> {
    
        /**
         * {@inheritDoc}
         */
        @Override
        TaskCollection<T> named(Spec<String> nameFilter);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:18:33 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.TaskCollection.xml

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultRealizableTaskCollection.java

            }
            for (T t : this) {
                context.add(t);
            }
        }
    
        @Override
        protected TaskCollection<T> getDelegate() {
            return (TaskCollection<T>) super.getDelegate();
        }
    
        private <S extends T> TaskCollection<S> realizable(Class<S> type, TaskCollection<S> collection) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:18:33 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TaskCollectionExtensions.kt

     *
     * @param S The type of objects to find.
     * @return The matching objects. Returns an empty collection if there are no such objects
     * in this collection.
     * @see [TaskCollection.withType]
     */
    inline fun <reified S : Task> TaskCollection<in S>.withType(): TaskCollection<S> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensions.kt

    fun <T : Task> TaskCollection<out Task>.named(name: String, type: KClass<T>): TaskProvider<T> =
        (this as TaskCollection<T>).named(name, type.java)
    
    
    /**
     * Configures a task by name and type, without triggering its creation or configuration, failing if there is no such task.
     *
     * @see [TaskCollection.named]
     * @see [TaskProvider.configure]
     */
    @Suppress("unchecked_cast")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 22:09:44 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskCollection.java

        }
    
        @Override
        public <S extends T> TaskCollection<S> withType(Class<S> type) {
            return filtered(createFilter(type));
        }
    
        @Override
        public TaskCollection<T> named(Spec<String> nameFilter) {
            Spec<T> spec = convertNameToElementFilter(nameFilter);
            return filtered(nameFilter, createFilter(spec));
        }
    
        @Override
        public TaskCollection<T> matching(Spec<? super T> spec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 00:10:35 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/task_configuration_avoidance.adoc

    | link:{javadocPath}/org/gradle/api/tasks/TaskCollection.html#withType-java.lang.Class-[TaskCollection.withType().getByName()]
    | Use `named()` instead.
    
    | link:{javadocPath}/org/gradle/api/tasks/TaskCollection.html#getByName-java.lang.String-[TaskCollection.getByName()]
    | Use `named()` instead.
    
    | link:{javadocPath}/org/gradle/api/tasks/TaskCollection.html#whenTaskAdded-org.gradle.api.Action-[TaskCollection.whenTaskAdded()]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 23:45:25 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultRealizableTaskCollectionTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.api.internal.tasks
    
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskCollection
    import org.gradle.model.internal.core.ModelNode
    import org.gradle.model.internal.core.ModelPath
    import org.gradle.model.internal.fixture.ModelRegistryHelper
    import org.gradle.util.TestUtil
    import spock.lang.Specification
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 22 12:57:17 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/TaskContainerDelegate.kt

            delegate.addAll(elements)
    
        override fun named(predicate: Spec<String>): TaskCollection<Task> =
            delegate.named(predicate)
    
        override fun matching(spec: Spec<in Task>): TaskCollection<Task> =
            delegate.matching(spec)
    
        override fun matching(closure: Closure<Any>): TaskCollection<Task> =
            delegate.matching(closure)
    
        override fun clear() =
            delegate.clear()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:18:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleApiExtensionsIntegrationTest.kt

                    ${DomainObjectCollection::class.qualifiedName}<Build_gradle.A>
                    ${DomainObjectCollection::class.qualifiedName}<Build_gradle.B>
                    ${TaskCollection::class.qualifiedName}<${Task::class.qualifiedName}>
                    ${TaskCollection::class.qualifiedName}<${Delete::class.qualifiedName}>
                    """
                )
            )
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 03 15:53:16 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top