public Map mapIncludedFiles()

in src/main/java/org/apache/maven/shared/model/fileset/util/FileSetManager.java [99:117]


    public Map<String, String> mapIncludedFiles(FileSet fileSet) throws MapperException {
        String[] sourcePaths = getIncludedFiles(fileSet);
        Map<String, String> mappedPaths = new LinkedHashMap<>();

        FileNameMapper fileMapper = MapperUtil.getFileNameMapper(fileSet.getMapper());

        for (String sourcePath : sourcePaths) {
            String destPath;
            if (fileMapper != null) {
                destPath = fileMapper.mapFileName(sourcePath);
            } else {
                destPath = sourcePath;
            }

            mappedPaths.put(sourcePath, destPath);
        }

        return mappedPaths;
    }