D - type of violation to exclude, e.g. Violation
or Duplication.ExcludeDuplicationsFromFile, ExcludeViolationsFromFilepublic interface ExcludeFromFile<D>
| Modifier and Type | Method | Description |
|---|---|---|
int |
countExclusions() |
Determines how many exclusions are considered.
|
boolean |
isExcludedFromFailure(D errorDetail) |
Checks whether the given violation is excluded.
|
void |
loadExcludeFromFailuresData(java.lang.String excludeFromFailureFile) |
Loads the exclude definitions from the given file.
|
void loadExcludeFromFailuresData(java.lang.String excludeFromFailureFile)
throws MojoExecutionException
excludeFromFailureFile - the path to the properties fileMojoExecutionException - if the properties file couldn't be loadedint countExclusions()
boolean isExcludedFromFailure(D errorDetail)
loadExcludeFromFailuresData(String).errorDetail - the violation to checktrue if the violation should be excluded, false otherwise.Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.