}
IPath outputRoot = outLocations.get(srcRoot);
int firstSegments = path.matchingFirstSegments(srcRoot);
// add relative path to the output path
IPath out = outputRoot.append(path.removeFirstSegments(firstSegments));
File directory = out.toFile();
return fbProject.addFile(directory.getAbsolutePath());
// TODO child directories too. Should add preference???
}
private void addClassesForFile(IFile file, Map<IPath, IPath> outLocations, Project fbProject) {