class ReportCollector extends java.lang.Object
Intercept ant task output and re-format it. Writes result to console and report file.
| Type | Name and description |
|---|---|
java.util.Set<java.lang.String> |
affectedFiles |
java.util.List<java.lang.String> |
report |
java.util.Set<java.io.File> |
roots |
| Constructor and description |
|---|
ReportCollector
(java.util.Set<java.io.File> roots) |
| Type | Name and description |
|---|---|
int |
errorsCnt()@return detected errors count |
int |
filesCnt()@return files with errors count |
java.lang.Object |
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)Used for ant's BuildListener to intercept logged messages. |
void |
writeToConsole(org.slf4j.Logger logger)Writes all violations to console. |
void |
writeToFile(java.io.File file)Writes detected errors to report file (overriding existing content). |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Used for ant's BuildListener to intercept logged messages.
proxy - proxymethod - methodargs - argsWrites all violations to console.
logger - build loggerWrites detected errors to report file (overriding existing content).
file - report fileGroovy Documentation