IDEA-144052 "path.macros.xml" only

This commit is contained in:
Vladimir Krivosheev
2016-12-27 11:48:27 +01:00
parent d881d923ab
commit b51aca4f1b
2 changed files with 5 additions and 1 deletions
@@ -87,6 +87,10 @@ class ApplicationStorageManager(application: Application, pathMacroManager: Path
override fun dataLoadedFromProvider(storage: FileBasedStorage, element: Element?) {
// IDEA-144052 When "Settings repository" is enabled changes in 'Path Variables' aren't saved to default path.macros.xml file causing errors in build process
if (storage.fileSpec != "path.macros.xml") {
return
}
LOG.catchAndLog {
if (element == null) {
storage.file.delete()
@@ -29,7 +29,7 @@ import gnu.trove.THashMap
import org.jdom.Attribute
import org.jdom.Element
abstract class XmlElementStorage protected constructor(protected val fileSpec: String,
abstract class XmlElementStorage protected constructor(val fileSpec: String,
protected val rootElementName: String?,
protected val pathMacroSubstitutor: TrackingPathMacroSubstitutor? = null,
roamingType: RoamingType? = RoamingType.DEFAULT,