mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
read ant workspace setting from workspace data only, affects IDEA-169055
This commit is contained in:
@@ -216,13 +216,6 @@ public class AntConfigurationImpl extends AntConfigurationBase implements Persis
|
||||
@Override
|
||||
public void loadState(Element state) {
|
||||
myIsInitialized = Boolean.FALSE;
|
||||
try {
|
||||
myAntWorkspaceConfiguration.loadFromProjectSettings(state);
|
||||
}
|
||||
catch (InvalidDataException e) {
|
||||
LOG.error(e);
|
||||
return;
|
||||
}
|
||||
|
||||
List<Pair<Element, String>> files = new ArrayList<>();
|
||||
for (Iterator<Element> iterator = state.getChildren(BUILD_FILE).iterator(); iterator.hasNext(); ) {
|
||||
|
||||
@@ -69,7 +69,7 @@ public class AntWorkspaceConfiguration implements PersistentStateComponent<Eleme
|
||||
}
|
||||
|
||||
public void readExternal(Element parentNode) throws InvalidDataException {
|
||||
loadGlobalSettings(parentNode);
|
||||
DefaultJDOMExternalizer.readExternal(this, parentNode);
|
||||
myProperties.set(parentNode);
|
||||
}
|
||||
|
||||
@@ -101,14 +101,6 @@ public class AntWorkspaceConfiguration implements PersistentStateComponent<Eleme
|
||||
}
|
||||
}
|
||||
|
||||
public void loadFromProjectSettings(Element parentNode) throws InvalidDataException {
|
||||
loadGlobalSettings(parentNode);
|
||||
}
|
||||
|
||||
private void loadGlobalSettings(Element parentNode) throws InvalidDataException {
|
||||
DefaultJDOMExternalizer.readExternal(this, parentNode);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static Element findChildByUrl(Element parentNode, String url) {
|
||||
for (Element element : parentNode.getChildren(BUILD_FILE)) {
|
||||
|
||||
Reference in New Issue
Block a user