Class ValidationMessagePrinter
- java.lang.Object
-
- org.apache.jackrabbit.filevault.maven.packaging.impl.ValidationMessagePrinter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ValidationMessagePrinter extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description ValidationMessagePrinter(@NotNull org.apache.maven.plugin.logging.Log log, @Nullable Path csvReportFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPreviousValidationMessages(org.sonatype.plexus.build.incremental.BuildContext context, File file)
void
close()
void
failBuildInCaseOfViolations(boolean failForWarning)
void
printMessages(Collection<org.apache.jackrabbit.vault.validation.ValidationViolation> violations, org.sonatype.plexus.build.incremental.BuildContext buildContext, Path baseDirectory)
void
printUsedValidators(org.apache.maven.plugin.logging.Log log, org.apache.jackrabbit.vault.validation.ValidationExecutor executor, org.apache.jackrabbit.vault.validation.spi.ValidationContext context, boolean printUnusedValidators)
-
-
-
Constructor Detail
-
ValidationMessagePrinter
public ValidationMessagePrinter(@NotNull @NotNull org.apache.maven.plugin.logging.Log log, @Nullable @Nullable Path csvReportFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
printMessages
public void printMessages(Collection<org.apache.jackrabbit.vault.validation.ValidationViolation> violations, org.sonatype.plexus.build.incremental.BuildContext buildContext, Path baseDirectory) throws IOException
- Parameters:
violations
-buildContext
-baseDirectory
- the directory to which all absolute paths should be made relative (e.g. the Maven basedir or the content package path)- Throws:
IOException
-
printUsedValidators
public void printUsedValidators(org.apache.maven.plugin.logging.Log log, org.apache.jackrabbit.vault.validation.ValidationExecutor executor, org.apache.jackrabbit.vault.validation.spi.ValidationContext context, boolean printUnusedValidators)
-
clearPreviousValidationMessages
public void clearPreviousValidationMessages(org.sonatype.plexus.build.incremental.BuildContext context, File file)
-
failBuildInCaseOfViolations
public void failBuildInCaseOfViolations(boolean failForWarning) throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-