Class TaskSetResolver


  • public class TaskSetResolver
    extends java.lang.Object
    Resolves task classes
    Since:
    2.1
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskSetResolver​(org.gradle.api.Project project)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTasksToLifecycleTask​(java.lang.String lifecycleTaskName, java.lang.Iterable<java.lang.String> taskNames)
      Registers a collection of tasks with a lifecycle task.
      void resolveDestroyOrder​(java.util.Collection<java.lang.Class<? extends org.ysb33r.gradle.iac.base.tf.tasks.AbstractTfStandardTask>> taskClasses, java.util.Collection<java.lang.String> taskBaseNames, java.util.Collection<java.lang.String> mustRunAfterTheseNames)
      Given a selection of task classes, of which the names start with the list of base names, they will be rquired to run after another set of provided tasks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TaskSetResolver

        @Inject
        public TaskSetResolver​(org.gradle.api.Project project)
    • Method Detail

      • resolveDestroyOrder

        public void resolveDestroyOrder​(java.util.Collection<java.lang.Class<? extends org.ysb33r.gradle.iac.base.tf.tasks.AbstractTfStandardTask>> taskClasses,
                                        java.util.Collection<java.lang.String> taskBaseNames,
                                        java.util.Collection<java.lang.String> mustRunAfterTheseNames)
        Given a selection of task classes, of which the names start with the list of base names, they will be rquired to run after another set of provided tasks.
        Parameters:
        taskClasses - Set of classes
        taskBaseNames - Base names for the above set of classes.
        mustRunAfterTheseNames - These are the tasks that come first in the execution order.
      • addTasksToLifecycleTask

        public void addTasksToLifecycleTask​(java.lang.String lifecycleTaskName,
                                            java.lang.Iterable<java.lang.String> taskNames)
        Registers a collection of tasks with a lifecycle task.
        Parameters:
        lifecycleTaskName - Name of the lifecycle task
        taskNames - Name of other tasks.