Class CompileTasks

java.lang.Object
dev.nokee.companion.CompileTasks

public abstract class CompileTasks extends Object
Represents a view of the compile tasks. We do not impose any task type as compile task can come in all shape and size. Use forBinary(CppBinary) to retrieve an instance from Java code.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    addLater(org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.Task> compileTask)
    Add a known task to this view
    abstract <S extends org.gradle.api.Task>
    void
    configureEach(Class<S> type, org.gradle.api.Action<? super S> configureAction)
    Configures each compile tasks presently (and futurely) known to this view of the specified type.
    abstract void
    configureEach(org.gradle.api.Action<? super org.gradle.api.Task> configureAction)
    Configures each compile tasks presently (and futurely) known to this view.
    forBinary(org.gradle.language.cpp.CppBinary binary)
    Returns the compile tasks view for the specified binary.
    abstract org.gradle.api.provider.Provider<Set<org.gradle.api.Task>>
    Returns a live provider of all compile tasks of this view.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CompileTasks

      public CompileTasks()
  • Method Details

    • addLater

      public abstract void addLater(org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.Task> compileTask)
      Add a known task to this view
      Parameters:
      compileTask - a known compile task
    • configureEach

      public abstract void configureEach(org.gradle.api.Action<? super org.gradle.api.Task> configureAction)
      Configures each compile tasks presently (and futurely) known to this view.
      Parameters:
      configureAction - the configure action to execute
    • configureEach

      public abstract <S extends org.gradle.api.Task> void configureEach(Class<S> type, org.gradle.api.Action<? super S> configureAction)
      Configures each compile tasks presently (and futurely) known to this view of the specified type.
      Type Parameters:
      S - the task type
      Parameters:
      type - the task type to configure
      configureAction - the configure action to execute
    • forBinary

      public static CompileTasks forBinary(org.gradle.language.cpp.CppBinary binary)
      Returns the compile tasks view for the specified binary.
      Parameters:
      binary - the binary to get the view for
      Returns:
      the compile tasks view
    • getElements

      public abstract org.gradle.api.provider.Provider<Set<org.gradle.api.Task>> getElements()
      Returns a live provider of all compile tasks of this view.
      Returns:
      a live provider of all compile tasks of this view