if (directory.getName().equals(match))
{
String name = directory.getParent();
// Look for existing entry
ProjectFiles projectFiles = (ProjectFiles) CollectionUtils.find(results, new NamePredicate(name));
if (projectFiles == null)
{
logger.debug(directory.getAbsolutePath());
// Build target src dir to match source project
String partial = directory.getAbsolutePath().substring(sourcePath.length());
String targetSrc = targetPath + partial;
File target = new File(targetSrc);
projectFiles = new ProjectFiles(directory, target);
results.add(projectFiles);
}
}
return true;