return result;
}
private static void extendClasspathWithProject(Collection<String> result, IProject project,
Collection<IProject> visited) throws CoreException, JavaModelException {
IProjectNature rutaNature = project.getNature(RutaNature.NATURE_ID);
if (rutaNature != null) {
IScriptProject sp = DLTKCore.create(project);
List<IFolder> scriptFolders = RutaProjectUtils.getScriptFolders(sp);
for (IFolder each : scriptFolders) {
result.add(each.getLocation().toPortableString());
}
List<IFolder> descriptorFolders = RutaProjectUtils.getDescriptorFolders(project);
for (IFolder each : descriptorFolders) {
result.add(each.getLocation().toPortableString());
}
IFolder resourceFolder = project.getFolder(RutaProjectUtils.getDefaultResourcesLocation());
if(resourceFolder != null && resourceFolder.exists()) {
result.add(resourceFolder.getLocation().toPortableString());
}
}
IProjectNature javaNature = project.getNature(RutaProjectUtils.JAVANATURE);
if (javaNature != null) {
JavaProject javaProject = (JavaProject) JavaCore.create(project);
// add output, e.g., target/classes
IPath readOutputLocation = javaProject.readOutputLocation();