List<DependencyDef> dependencies = project.getDependencies();
List<String> projectDeps = new ArrayList<String>();
String basePath = dspFile.getParent();
for(Iterator<DependencyDef> iter = dependencies.iterator(); iter.hasNext();) {
DependencyDef dep = iter.next();
if (dep.getFile() != null) {
String projName = toProjectName(dep.getName());
projectDeps.add(projName);
String depProject = CUtil.toWindowsPath(
CUtil.getRelativePath(basePath,
new File(dep.getFile() + ".dsp")));
writeWorkspaceProject(writer, projName, depProject, dep.getDependsList());
}
}
writeWorkspaceProject(writer, projectName, dspFile.getName(), projectDeps);