Package dev.nokee.companion.util
Class CopyFromAction<T extends org.gradle.api.Task>
java.lang.Object
dev.nokee.companion.util.CopyFromAction<T>
- Type Parameters:
T- must beAbstractNativeCompileTask,AbstractLinkTaskorCppCompile
- All Implemented Interfaces:
org.gradle.api.Action<T>
public class CopyFromAction<T extends org.gradle.api.Task>
extends Object
implements org.gradle.api.Action<T>
Utility action that copies the configuration from a task to another.
-
Method Summary
-
Method Details
-
execute
- Specified by:
executein interfaceorg.gradle.api.Action<T extends org.gradle.api.Task>
-
copyFrom
public static <T extends org.gradle.api.Task> org.gradle.api.Action<T> copyFrom(org.gradle.api.provider.Provider<? extends T> otherTask) Copies the configuration of the specified task to the current task.We only copy the configuration that are safe to duplicate.
- Type Parameters:
T- must beAbstractNativeCompileTask,AbstractLinkTaskorCppCompile- Parameters:
otherTask- the task to copy the configuration from- Returns:
- a configuration action that will perform the copy
-