Andy,
Unfortunately, Glean doesn't support general exclusions that can apply to all tools. There are a few tools, though that do support exclusions with hooks that Glean takes advantage of:
* findbugs: use the property "findbugs.excludes.file" to point to a Findbugs-style exclusion file (a sample is in ${glean.home}/tool/findbugs/findbugs-default-filter.xml).
* emma and cobertura each support exclusion filters - see the tools page (
http://jbrugge.com/glean/tools.html) for the property descriptions of these
For Checkstyle, though, it looks like the only way to do it, if your generated source is not in a separate tree from your other source, is to edit the build.xml for the tool.
Since Glean configuration is all property-based, another way it could be done is by defining a property that would point to an exludesfile (
http://ant.apache.org/manual/CoreTypes/fileset.html), and have the <fileset> definition in the tools' build.xml refer to that (the default being an empty file, perhaps?). So you would might create a file, ${project.root}/config/generated-file-excludes.txt, for instance, that had this line in it:
**/generated/*.java
The checkstyle's build.xml could have:
<fileset dir="${src.dir}" includes="**/*.java">
<excludesfile="${project.exclude.filter}" />
</fileset>
You would then just add a property definition to your (project).feedback.properties file:
project.exclude.filter=${project.root}/config/generated-file-excludes.txt
The should work for any of the other tools that deal with filesets alone to define their set of input files. If I find the time, perhaps I'll add that in :-)
Hope that helps,
John