From 5fcc8fd851383db629c7a7fae87454ef028187c2 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 29 Jan 2003 17:44:03 +0000 Subject: [PATCH] minor refactoring git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1389 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/src/net/sourceforge/pmd/ant/PMDTask.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pmd/src/net/sourceforge/pmd/ant/PMDTask.java b/pmd/src/net/sourceforge/pmd/ant/PMDTask.java index 8601d2123b..e0444c1b36 100644 --- a/pmd/src/net/sourceforge/pmd/ant/PMDTask.java +++ b/pmd/src/net/sourceforge/pmd/ant/PMDTask.java @@ -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) {