Class CleanTask

java.lang.Object
org.gradle.api.internal.AbstractTask
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, 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.
  • Field Details

    • DESCRIPTION

      public static final String DESCRIPTION
      The description of the task. This also appears in Gradle help.
      See Also:
    • NAME

      public static final String NAME
      The name of the task. This is the name of the task to use inside Gradle scripts.
      See Also:
    • GROUP

      public static final String GROUP
      The group the tasks belong to.
      See Also:
  • Constructor Details

    • 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 Details

    • 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