Class ShortFilenameUtil


  • public final class ShortFilenameUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String determineFileName​(java.util.List<java.lang.String> inputPathPrefixes, java.lang.String inputFileName)
      Determines the filename that should be used in the report depending on the option "shortnames".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • determineFileName

        public static java.lang.String determineFileName​(java.util.List<java.lang.String> inputPathPrefixes,
                                                         java.lang.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()