mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
eclipse: restore root path from .classpath or do not create module at all (IDEA-123946)
This commit is contained in:
+8
-2
@@ -202,8 +202,14 @@ public class EclipseClasspathStorageProvider implements ClasspathStorageProvider
|
||||
try {
|
||||
final HashSet<String> usedVariables = new HashSet<String>();
|
||||
final CachedXmlDocumentSet documentSet = getFileSet();
|
||||
final String path = documentSet.getParent(EclipseXml.PROJECT_FILE);
|
||||
LOG.assertTrue(documentSet.exists(EclipseXml.PROJECT_FILE));
|
||||
String path = documentSet.getParent(EclipseXml.PROJECT_FILE);
|
||||
if (!documentSet.exists(EclipseXml.PROJECT_FILE)) {
|
||||
if (!documentSet.exists(EclipseXml.CLASSPATH_FILE)) {
|
||||
return usedVariables;
|
||||
}
|
||||
|
||||
path = documentSet.getParent(EclipseXml.CLASSPATH_FILE);
|
||||
}
|
||||
final EclipseClasspathReader classpathReader = new EclipseClasspathReader(path, module.getProject(), null);
|
||||
classpathReader.init(model);
|
||||
if (documentSet.exists(EclipseXml.CLASSPATH_FILE)) {
|
||||
|
||||
Reference in New Issue
Block a user