Class ShortFilenameUtil
- java.lang.Object
-
- net.sourceforge.pmd.internal.util.ShortFilenameUtil
-
public final class ShortFilenameUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
determineFileName(List<String> inputPathPrefixes, String inputFileName)
Determines the filename that should be used in the report depending on the option "shortnames".
-
-
-
Method Detail
-
determineFileName
public static String determineFileName(List<String> inputPathPrefixes, String inputFileName)
Determines the filename that should be used in the report depending on the option "shortnames". If the option is enabled, then the filename in the report is without the directory prefix of the directories, that have been analyzed. If the option "shortnames" is not enabled, then the inputFileName is returned as-is.- Parameters:
inputPathPrefixes
-inputFileName
-- Returns:
-
-