Package dev.nokee.companion
Class CompileTasks
java.lang.Object
dev.nokee.companion.CompileTasks
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 -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddLater(org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.Task> compileTask) Add a known task to this viewabstract <S extends org.gradle.api.Task>
voidconfigureEach(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 voidconfigureEach(org.gradle.api.Action<? super org.gradle.api.Task> configureAction) Configures each compile tasks presently (and futurely) known to this view.static CompileTasksforBinary(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.
-
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 configureconfigureAction- the configure action to execute
-
forBinary
Returns the compile tasks view for the specified binary.- Parameters:
binary- the binary to get the view for- Returns:
- the compile tasks view
-
getElements
Returns a live provider of all compile tasks of this view.- Returns:
- a live provider of all compile tasks of this view
-