Class ClearMojo

  • All Implemented Interfaces:
    ParameterAdapter, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="clr",
          defaultPhase=CLEAN)
    public class ClearMojo
    extends AbstractLatexMojo
    Clears all created files in the folders containing the LaTeX sources for the goal clr tied to the lifecycle phase clean.
    • Constructor Detail

      • ClearMojo

        public ClearMojo()
    • Method Detail

      • getTargetSet

        public SortedSet<Target> getTargetSet()
        Description copied from interface: ParameterAdapter
        Returns the set of target. FIXME: Better would be Enum set but best a sorted kind of EnumSet The set is an EnumSet and thus in a sense sorted, although not imlementing SortedSet: ***** The iterator returned by the iterator method traverses the elements in their natural order (the order in which the enum constants are declared). TODO: generalize to more than one target.
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoFailureException
        Invoked by maven executing the plugin.

        Logging:

        • WPP02: tex file may be latex main file
        • WFU01: Cannot read directory...
        • WFU03: cannot close tex file
        • EFU05: Failed to delete file
        Throws:
        BuildFailureException - TSS02 if the tex source processing directory does either not exist or is not a directory.
        org.apache.maven.plugin.MojoFailureException