Class FormatDocviewXmlMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.jackrabbit.filevault.maven.packaging.mojo.FormatDocviewXmlMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="format-xml", defaultPhase=PROCESS_SOURCES, threadSafe=true) public class FormatDocviewXmlMojo extends org.apache.maven.plugin.AbstractMojo
Either checks only the formatting of the Docview XML files to comply with the formatting rules from FileVault or also reformats those files.
-
-
Constructor Summary
Constructors Constructor Description FormatDocviewXmlMojo(org.sonatype.plexus.build.incremental.BuildContext buildContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected void
executeInternal(@NotNull File sourceDirectory)
-
-
-
Field Detail
-
includes
@Parameter protected Set<String> includes
Include patterns for files to include. If not set defaults to [**\/*.xml].Note: includes have precedences over excludes. Each pattern can either be an Ant-like pattern or a regular expression if it is starting with
%regex[
and ending with]
.
-
excludes
@Parameter protected Set<String> excludes
Exclude patterns for files to exclude. If not set defaults to [].Note: includes have precedences over excludes. Each pattern can either be an Ant-like pattern or a regular expression if it is starting with
%regex[
and ending with]
.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
executeInternal
protected void executeInternal(@NotNull @NotNull File sourceDirectory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-