More debugging info
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2827 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -109,7 +109,11 @@ public class PMD {
|
||||
RuleSet rules = ruleSetFactory.createRuleSet(opts.getRulesets());
|
||||
for (Iterator i = files.iterator(); i.hasNext();) {
|
||||
File file = (File) i.next();
|
||||
ctx.setSourceCodeFilename(glomName(opts.shortNamesEnabled(), opts.getInputFileName(), file));
|
||||
String filename = glomName(opts.shortNamesEnabled(), opts.getInputFileName(), file);
|
||||
if (opts.debugEnabled()) {
|
||||
System.out.println("Processing " + filename);
|
||||
}
|
||||
ctx.setSourceCodeFilename(filename);
|
||||
try {
|
||||
pmd.processFile(new BufferedInputStream(new FileInputStream(file)), opts.getEncoding(), rules, ctx);
|
||||
} catch (PMDException pmde) {
|
||||
|
Reference in New Issue
Block a user