Package eu.simuline.m2latex.mojo
Class ChkMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- eu.simuline.m2latex.mojo.AbstractLatexMojo
-
- eu.simuline.m2latex.mojo.ChkMojo
-
- All Implemented Interfaces:
ParameterAdapter,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="chk") public class ChkMojo extends AbstractLatexMojo
Checks all latex main files after having created all graphical files.Defines the goal
chkwhich is not tied to a lifecycle phase.
-
-
Field Summary
-
Fields inherited from class eu.simuline.m2latex.mojo.AbstractLatexMojo
baseDirectory, latexProcessor, settings, targetDirectory, targetSiteDirectory
-
-
Constructor Summary
Constructors Constructor Description ChkMojo()
-
Method Summary
Modifier and Type Method Description voidexecute()Invoked by maven executing the plugin.SortedSet<Target>getTargetSet()Returns the set of target.-
Methods inherited from class eu.simuline.m2latex.mojo.AbstractLatexMojo
initialize
-
-
-
-
Method Detail
-
getTargetSet
public SortedSet<Target> getTargetSet()
Description copied from interface:ParameterAdapterReturns 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.MojoFailureExceptionInvoked 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
-
-