public Set getIncludedSources()

in src/main/java/org/apache/maven/shared/io/scan/SimpleResourceInclusionScanner.java [49:63]


    public Set<File> getIncludedSources(File sourceDir, File targetDir) throws InclusionScanException {
        List<SourceMapping> srcMappings = getSourceMappings();

        if (srcMappings.isEmpty()) {
            return Collections.emptySet();
        }

        Set<File> matchingSources = new HashSet<>();
        String[] sourcePaths = scanForSources(sourceDir, sourceIncludes, sourceExcludes);

        for (String sourcePath : sourcePaths) {
            matchingSources.add(new File(sourceDir, sourcePath));
        }
        return matchingSources;
    }