eclipse: write .classpath file if order entries were added (e.g. project library) (IDEA-26953)

This commit is contained in:
anna
2009-12-22 19:02:23 +03:00
parent 5e69a2ea34
commit 5c64002837
@@ -206,7 +206,7 @@ public class EclipseClasspathStorageProvider implements ClasspathStorageProvider
element = null;
}
if (element != null || model.getSourceRoots().length > 0) {
if (element != null || model.getSourceRoots().length > 0 || model.getOrderEntries().length > 2) {
classpathWriter.writeClasspath(classpathElement, element);
fileSet.write(new Document(classpathElement), EclipseXml.CLASSPATH_FILE);
}