Contains the common code to compare an array of files against a requirement.
Adapted from org.apache.maven.plugins.enforcer.AbstractRequireFiles
Original author: Brian Fox
Type | Name and description |
---|---|
Property<Boolean> |
allowNulls |
ListProperty<String> |
excludePatterns |
ListProperty<File> |
files |
ListProperty<String> |
includePatterns |
Constructor and description |
---|
AbstractRequireFiles
(ObjectFactory objects) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected boolean |
checkFile(EnforcerContext context, File file) |
|
protected void |
doExecute(EnforcerContext context) |
|
protected void |
doValidate(EnforcerContext context) |
|
void |
exclude(String str) |
|
protected boolean |
failIfNoMatches() |
|
void |
file(String str) |
|
void |
file(File file) |
|
protected String |
getErrorMsg() |
|
void |
include(String str) |
Methods inherited from class | Name |
---|---|
class AbstractFilteringEnforcerRule |
doValidate, execute, setPhases |
class AbstractEnforcerRule |
doExecute, doValidate, execute, fail, fail, fail, illegalArgumentException, illegalArgumentException, resolveClassName, setEnforcerLevel, validate |
Groovy Documentation