public void visitDirectory(File dir, boolean isDevel, Map<String, IRepositoryRoot> newRoots, IRepository repository, boolean force) {
if (isDevel) {
File classpathFile = new File(dir, ".classpath");
if (classpathFile.exists()) {
ClasspathFileParser classpathParser = new ClasspathFileParser();
boolean parsed = true;
try {
classpathParser.parse(classpathFile.toURI().toURL());
} catch (MalformedURLException e) {
parsed = false;
}
if (parsed) {
String classPath = classpathParser.getClassPath();
if (classPath != null) {
File classPathDir = new File(dir, classPath);
handleDirectory(classPathDir, dir, newRoots, repository, force);
}
for (String sourcePath : classpathParser.getSourcePaths()) {
if (sourcePath != null) {
File sourcePathDir = new File(dir, sourcePath);
handleDirectory(sourcePathDir, dir, newRoots, repository, force);
}