+ " dependencies between java projects won't be used", e);
}
}
for (Iterator iter = all.iterator(); iter.hasNext();) {
ArtifactDownloadReport artifact = (ArtifactDownloadReport) iter.next();
boolean usedProject = false;
if (conf.isResolveInWorkspace()) {
ModuleId moduleId = artifact.getArtifact().getModuleRevisionId().getModuleId();
String moduleName = moduleId.getName();
ModuleRevisionId moduleRevisionId = (ModuleRevisionId) dependencies.get(moduleName);
if (moduleRevisionId != null) {
IJavaProject project = (IJavaProject) idToJProject.get(moduleId);
if (project != null && project.exists()) {
IClasspathEntry entry = JavaCore.newProjectEntry(project.getPath());
if (entry != null && !paths.contains(entry)) {
paths.add(entry);
}
usedProject = true;
}
}
}
if (!usedProject) {
if (artifact.getLocalFile() != null && accept(artifact.getArtifact())) {
Path classpathArtifact = new Path(artifact.getLocalFile().getAbsolutePath());
Path sourcesArtifact = getSourcesArtifactPath(artifact, all);
Path javadocArtifact = getJavadocArtifactPath(artifact, all);
paths.add(JavaCore.newLibraryEntry(classpathArtifact, getSourceAttachment(
classpathArtifact, sourcesArtifact), getSourceAttachmentRoot(
classpathArtifact, sourcesArtifact), null, getExtraAttribute(