minor refactoring

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1389 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-01-29 17:44:03 +00:00
parent be11288e2e
commit 5fcc8fd851

View File

@ -128,13 +128,7 @@ public class PMDTask extends Task {
try {
File file = new File(ds.getBasedir() + System.getProperty("file.separator") + srcFiles[j]);
printIfVerbose (file.getAbsoluteFile().toString());
String fileName = file.getAbsolutePath();
if (shortFilenames) {
fileName = srcFiles[j];
}
ctx.setSourceCodeFilename(fileName);
ctx.setSourceCodeFilename(shortFilenames ? srcFiles[j] : file.getAbsolutePath());
pmd.processFile(new FileInputStream(file), rules, ctx);
} catch (FileNotFoundException fnfe) {
if (failOnError) {