@ Override public List < FileSource > createSources ( String srcName ) { final File dirOrFile = new File ( srcName ) ; final File [ ] files = dirOrFile . listFiles ( FILTER ) ; if ( files != null ) { final List < FileSource > sources = new ArrayList < FileSource > ( files . length ) ; for ( File file : files ) { sources . add ( new FileSource ( file ) ) ; } return sources ; } else { return Util . list ( new FileSource ( dirOrFile ) ) ; } }
Return sa list of FileSources based on the name . If the name is a directory then it returns all the files in that directory ending with . jadt . Otherwise it is assumed that the name is a file .