Class FileNameResolver


  • public class FileNameResolver
    extends Object
    Resolves the affected files of a set of issues in a given source directory. Replaces all file names with the relative file names in this folder. File names that cannot be resolved will be left unchanged.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • FileNameResolver

        public FileNameResolver()
    • Method Detail

      • run

        public void run​(Report report,
                        String sourceDirectoryPrefix,
                        Predicate<String> skipFileNamePredicate)
        Resolves the file names of the affected files of the specified set of issues.
        Parameters:
        report - the issues to resolve the paths
        sourceDirectoryPrefix - absolute source path that should be used as parent folder to search for files
        skipFileNamePredicate - skip specific files based on the file name