On 03/05/2012 04:08 PM, [email protected] wrote: > We've just started using the warnings plugin, scanning the console log for > Buckminster compiler warnings. > > I want to only collect warnings for selected source files, so I clicked > "Advanced" which offers options "Warnings to include" and "Warnings to > ignore". I tried to specify a file path here (with wildcards), but that > didn't seem to work. The help text is unclear, but it seems to suggest that > only a filename, but not a file path, can be entered here. > Is there a way to only collect warnings from certain files? > > What patterns did you specify? Note that the pattern is a regular expression and not a shell wildcard expression.
The help text currently is: 'Comma separated list of regular expressions <http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html> that specifies the files to exclude from the report (based on their absolute filename).' I'm not a native speaker, so I would appreciate any improvements to this help text to make it clear for the user :-) What I wanted to say with that help text is: If the warning is in a file with absolute path "/path/to/file/file.txt" then e.g., the patterns ".*/to/.*" or ".*/file\.txt" will match that file. All files that match will be either included or excluded in the reports (depending in which field you enter the value). Ulli
