Class ShortFilenameUtil


  • public final class ShortFilenameUtil
    extends Object
    • 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:
        See Also:
        PMDConfiguration.isReportShortNames(), PMDParameters.isShortnames()