Package eu.simuline.m2latex.mojo
Class GraphicsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- eu.simuline.m2latex.mojo.AbstractLatexMojo
-
- eu.simuline.m2latex.mojo.GraphicsMojo
-
- All Implemented Interfaces:
ParameterAdapter,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="grp") public class GraphicsMojo extends AbstractLatexMojo
Transforms all graphic files into formats which can be included into LaTeX files for the goalgrpwhich 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 GraphicsMojo()
-
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:
- WFU01: Cannot read directory
- WFU03: cannot close file
- EFU06: Cannot move file
- WPP02: tex file may be latex main file
- WPP03: Skipped processing of files with suffixes ...
- EEX01, EEX02, EEX03, WEX04, WEX05: if running graphic processors failed.
- Throws:
org.apache.maven.plugin.MojoFailureException-- TSS02 if the tex source processing directory does either not exist or is not a directory.
- TEX01 invoking FIXME
-
-