@Test public void testComputeFilesListWithSourceList() throws PMDException { final List< File > sourceList = new ArrayList< File >(); sourceList.add( getTestDirectory() ); final Map< String, IFlexFile > files = FileUtils.computeFilesList( null, sourceList, "", null ); Assert.assertEquals( 110, files.size() ); }
public static Map< String, IFlexFile > computeFilesList( final File source, final List< File > sourceList, final String packageToExclude, final List< String > excludePatterns ) throws PMDException { final Map< String, IFlexFile > files = new LinkedHashMap< String, IFlexFile >(); final FlexFilter flexFilter = new FlexFilter(); final Collection< File > foundFiles = getFlexFiles( source, sourceList, flexFilter ); for ( final File sourceFile : foundFiles ) { final AbstractFlexFile file = create( sourceFile, source ); if ( ( "".equals( packageToExclude ) || !file.getFullyQualifiedName().startsWith( packageToExclude ) ) && !currentPackageIncludedInExcludePatterns( file.getFullyQualifiedName(), excludePatterns ) ) { files.put( file.getFullyQualifiedName(), file ); } } return files; }
FileUtils { public static Map< String, IFlexFile > computeFilesList( final File source, final List< File > sourceList, final String packageToExclude, final List< String > excludePatterns ) throws PMDException { final Map< String, IFlexFile > files = new LinkedHashMap< String, IFlexFile >(); final FlexFilter flexFilter = new FlexFilter(); final Collection< File > foundFiles = getFlexFiles( source, sourceList, flexFilter ); for ( final File sourceFile : foundFiles ) { final AbstractFlexFile file = create( sourceFile, source ); if ( ( "".equals( packageToExclude ) || !file.getFullyQualifiedName().startsWith( packageToExclude ) ) && !currentPackageIncludedInExcludePatterns( file.getFullyQualifiedName(), excludePatterns ) ) { files.put( file.getFullyQualifiedName(), file ); } } return files; } }
FileUtils { public static Map< String, IFlexFile > computeFilesList( final File source, final List< File > sourceList, final String packageToExclude, final List< String > excludePatterns ) throws PMDException { final Map< String, IFlexFile > files = new LinkedHashMap< String, IFlexFile >(); final FlexFilter flexFilter = new FlexFilter(); final Collection< File > foundFiles = getFlexFiles( source, sourceList, flexFilter ); for ( final File sourceFile : foundFiles ) { final AbstractFlexFile file = create( sourceFile, source ); if ( ( "".equals( packageToExclude ) || !file.getFullyQualifiedName().startsWith( packageToExclude ) ) && !currentPackageIncludedInExcludePatterns( file.getFullyQualifiedName(), excludePatterns ) ) { files.put( file.getFullyQualifiedName(), file ); } } return files; } private  FileUtils(); }
FileUtils { public static Map< String, IFlexFile > computeFilesList( final File source, final List< File > sourceList, final String packageToExclude, final List< String > excludePatterns ) throws PMDException { final Map< String, IFlexFile > files = new LinkedHashMap< String, IFlexFile >(); final FlexFilter flexFilter = new FlexFilter(); final Collection< File > foundFiles = getFlexFiles( source, sourceList, flexFilter ); for ( final File sourceFile : foundFiles ) { final AbstractFlexFile file = create( sourceFile, source ); if ( ( "".equals( packageToExclude ) || !file.getFullyQualifiedName().startsWith( packageToExclude ) ) && !currentPackageIncludedInExcludePatterns( file.getFullyQualifiedName(), excludePatterns ) ) { files.put( file.getFullyQualifiedName(), file ); } } return files; } private  FileUtils(); static Map< String, IFlexFile > computeFilesList( final File source,
                                                            final List< File > sourceList,
                                                            final String packageToExclude,
                                                            final List< String > excludePatterns ); static AbstractFlexFile create( final File sourceFile,
                                          final File sourceDirectory ); static String[] readLines( final File file ); }
FileUtils { public static Map< String, IFlexFile > computeFilesList( final File source, final List< File > sourceList, final String packageToExclude, final List< String > excludePatterns ) throws PMDException { final Map< String, IFlexFile > files = new LinkedHashMap< String, IFlexFile >(); final FlexFilter flexFilter = new FlexFilter(); final Collection< File > foundFiles = getFlexFiles( source, sourceList, flexFilter ); for ( final File sourceFile : foundFiles ) { final AbstractFlexFile file = create( sourceFile, source ); if ( ( "".equals( packageToExclude ) || !file.getFullyQualifiedName().startsWith( packageToExclude ) ) && !currentPackageIncludedInExcludePatterns( file.getFullyQualifiedName(), excludePatterns ) ) { files.put( file.getFullyQualifiedName(), file ); } } return files; } private  FileUtils(); static Map< String, IFlexFile > computeFilesList( final File source,
                                                            final List< File > sourceList,
                                                            final String packageToExclude,
                                                            final List< String > excludePatterns ); static AbstractFlexFile create( final File sourceFile,
                                          final File sourceDirectory ); static String[] readLines( final File file );  }