Class CleanTask

  • All Implemented Interfaces:
    Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, org.gradle.util.Configurable<Task>

    public abstract class CleanTask
    extends CoreTask
    The task running the Clean command by invoking the Nyx.clean() method on the backing Nyx instance.
    • Constructor Detail

      • CleanTask

        @Inject
        public CleanTask​(NyxExtension extension)
        Standard constructor.
        Parameters:
        extension - the extension object. Cannot be null. This is injected by Gradle because it's passed as an optional constructor argument by the NyxPlugin definition method.
    • Method Detail

      • clean

        public void clean()
                   throws NyxException
        The actual business method for this task. This method runs the Nyx.clean() method on the shared singleton Nyx instance. Gradle knows this is the method to run upon task execution thanks to the TaskAction annotation.
        Throws:
        NyxException - in case of any exception when invoking the backing instance