class WorkspaceScanner {

    public void partialScan(PropertyFileAcceptor acceptor, File baseDir, PropertyScanner scanner, ScanConfiguration config, File singleFile) {
        Project antProject = new org.apache.tools.ant.Project();
        FileSet fs = createFileSet(config);
        String[] excludes = fs.mergeExcludes(antProject);
        if(excludes!=null)
        {
            for (String exclude : excludes) {
                if(SelectorUtils.match(normalizePattern(exclude), singleFile.getPath()))
                    return;
            }
        }
        String[] includes = fs.mergeIncludes(antProject);
        if(includes==null)
            return;
        for (String include : includes) {
            if(SelectorUtils.match(normalizePattern(include), singleFile.getPath()))
            {
                if (baseDir.exists()) {

//					if(scanner.isTemplate(singleFile, config)) {
                        acceptor.newMatch(singleFile);
//					}

                }
                break;
            }
        }
    }

    public  WorkspaceScanner();

}