Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for TaskIdentityFactory (0.27 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/TaskIdentityFactory.java

     * when creating new instances and/or loading from the configuration cache.
     */
    @ThreadSafe
    @ServiceScope(Scope.BuildTree.class)
    public class TaskIdentityFactory {
    
        private final ConfigurationCacheableIdFactory idFactory;
    
        public TaskIdentityFactory(ConfigurationCacheableIdFactory idFactory) {
            this.idFactory = idFactory;
        }
    
        /**
         * Create a task identity.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/TaskInstantiator.java

        private final TaskIdentityFactory taskIdentityFactory;
        private final ITaskFactory taskFactory;
        private final ProjectInternal project;
    
        public TaskInstantiator(TaskIdentityFactory taskIdentityFactory, ITaskFactory taskFactory, ProjectInternal project) {
            this.taskIdentityFactory = taskIdentityFactory;
            this.taskFactory = taskFactory;
            this.project = project;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 17 15:12:22 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskContainerFactory.java

        private static final SimpleModelRuleDescriptor COPY_TO_TASK_CONTAINER_DESCRIPTOR = new SimpleModelRuleDescriptor("copyToTaskContainer");
        private final Instantiator instantiator;
        private final TaskIdentityFactory taskIdentityFactory;
        private final ITaskFactory taskFactory;
        private final CollectionCallbackActionDecorator callbackDecorator;
        private final ProjectInternal project;
        private final TaskStatistics statistics;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 09:54:40 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/project/taskfactory/TestTaskIdentities.java

    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * A test fixture to create {@link TaskIdentityFactory}'es or {@link TaskIdentity}'es directly.
     * <p>
     * It exists mainly because {@code TaskIdentity} is a final class and cannot be mocked.
     */
    public class TestTaskIdentities {
    
        private static final TaskIdentityFactory DEFAULT_FACTORY = factory();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/service/scopes/ProjectScopeServices.java

        }
    
        @Provides
        protected TaskInstantiator createTaskInstantiator(TaskIdentityFactory taskIdentityFactory, ITaskFactory taskFactory) {
            return new TaskInstantiator(taskIdentityFactory, taskFactory, project);
        }
    
        @Provides
        protected TaskContainerInternal createTaskContainerInternal(
            TaskStatistics taskStatistics,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:42 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskContainer.java

        ) {
            super(Task.class, instantiator, project, MutationGuards.of(crossProjectConfigurator), callbackDecorator);
            this.taskIdentityFactory = taskIdentityFactory;
            this.taskFactory = taskFactory;
            taskInstantiator = new TaskInstantiator(taskIdentityFactory, taskFactory, project);
            this.statistics = statistics;
            this.eagerlyCreateLazyTasks = Boolean.getBoolean(EAGERLY_CREATE_LAZY_TASKS_PROPERTY);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 09:54:40 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractSpockTaskTest.groovy

        public static final String TEST_TASK_NAME = "taskname"
    
        def taskClassInfoStore = new DefaultTaskClassInfoStore(new TestCrossBuildInMemoryCacheFactory())
        def taskIdentityFactory = new TaskIdentityFactory(new ConfigurationCacheableIdFactory())
        def taskFactory = new AnnotationProcessingTaskFactory(DirectInstantiator.INSTANCE, taskClassInfoStore, new TaskFactory())
    
        abstract DefaultTask getTask()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 14:27:55 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/util/internal/NameValidatorTest.groovy

    import org.gradle.api.internal.file.TestFiles
    import org.gradle.api.internal.project.ProjectInternal
    import org.gradle.api.internal.project.taskfactory.TaskFactory
    import org.gradle.api.internal.project.taskfactory.TaskIdentityFactory
    import org.gradle.api.internal.project.taskfactory.TaskInstantiator
    import org.gradle.api.internal.tasks.DefaultSourceSetContainer
    import org.gradle.internal.id.ConfigurationCacheableIdFactory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 13 22:27:15 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/buildtree/BuildTreeScopeServices.java

    import org.gradle.api.internal.model.NamedObjectInstantiator;
    import org.gradle.api.internal.project.DefaultProjectStateRegistry;
    import org.gradle.api.internal.project.taskfactory.TaskIdentityFactory;
    import org.gradle.api.internal.provider.DefaultConfigurationTimeBarrier;
    import org.gradle.api.internal.provider.PropertyFactory;
    import org.gradle.api.internal.tasks.TaskDependencyFactory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskContainerTest.groovy

    import org.gradle.util.Path
    import org.gradle.util.TestUtil
    
    import static java.util.Collections.singletonMap
    
    class DefaultTaskContainerTest extends AbstractPolymorphicDomainObjectContainerSpec<Task> {
    
        private taskIdentityFactory = TestTaskIdentities.factory()
        private taskFactory = Mock(ITaskFactory)
        private project = Mock(ProjectInternal, name: "<project>") {
            identityPath(_) >> { String name ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 14:36:44 UTC 2024
    - 44.9K bytes
    - Viewed (0)
Back to top