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:
Tom Copeland
2004-07-22 19:25:41 +00:00
parent 983731e016
commit d2547ce994

View File

@ -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) {