Hi Ulli,
Thank you for your hint. “.*/materialize_workspace_git/scisoft/.*\.java” works 
for me.
Originally,  I was missing the “.*/” at the beginning of the regex.
Matthew

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Ullrich Hafner
Sent: 05 March 2012 16:11
To: [email protected]<mailto:[email protected]>
Subject: Re: Specifying files in warnings plugin

On 03/05/2012 04:08 PM, 
[email protected]<mailto:[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





-- 

This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.

Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 

Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.

Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

 







Reply via email to