public List < String > getOrphansList ( ) throws DuplicateBundlePathException { // Create a mapping for every resource available JoinableResourceBundleImpl tempBundle = new JoinableResourceOrphanBundleImpl ( "orphansTemp" , "orphansTemp" , this . resourceExtension , new InclusionPattern ( ) , Collections . singletonList ( this . baseDir ) , rsHandler , generatorRegistry ) ; // Add licenses Set < String > licensesPathList = tempBundle . getLicensesPathList ( ) ; for ( Iterator < String > it = licensesPathList . iterator ( ) ; it . hasNext ( ) ; ) { addFileIfNotMapped ( it . next ( ) ) ; } // Add resources List < BundlePath > allPaths = tempBundle . getItemPathList ( ) ; for ( Iterator < BundlePath > it = allPaths . iterator ( ) ; it . hasNext ( ) ; ) { addFileIfNotMapped ( it . next ( ) . getPath ( ) ) ; } return this . bundleMapping ; }
Scan all dirs starting at baseDir and add each orphan resource to the resources map .