In theory, it would be possible. You would use a shell script to parse the SVN (or whatever SCM) change logs after a given start date, identify the .java files from these change sets and build two patterns from these:
- The Findbugs Maven Plugin expects a comma-separated list of class (or
package) names for the parameter
onlyAnalyze
, so you'll have
to translate file names to fully qualified class names (this will get
tricky when you're dealing with inner classes)
- The Maven Checkstyle Plugin is even worse, it expects a
configuration file for its
packageNamesLocation
parameter.
Unfortunately, only packages are allowed, not individual files. So
you'll have to translate file names to packages.
In the above examples I assume that you are using maven. I am pretty sure that similar things can be done with ant, but I wouldn't know.
I myself would probably use a Groovy script instead of a shell script to achieve the above results.