mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
eclipse: trim names read from .project
This commit is contained in:
@@ -64,6 +64,10 @@ public class EclipseProjectFinder implements EclipseXml {
|
||||
if (file.isFile()) {
|
||||
try {
|
||||
name = JDOMUtil.loadDocument(file).getRootElement().getChildText(NAME_TAG);
|
||||
if (StringUtil.isEmptyOrSpaces(name)) {
|
||||
return null;
|
||||
}
|
||||
name = name.replace("\n", " ").trim();
|
||||
}
|
||||
catch (JDOMException e) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user