enable external storage by default, part 2

This commit is contained in:
Vladimir Krivosheev
2018-01-19 16:17:20 +01:00
parent d226d7b3d1
commit 6cca6a0769
2 changed files with 4 additions and 10 deletions
@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.settings;
import com.intellij.openapi.externalSystem.service.execution.ExternalSystemJdkUtil;
@@ -27,7 +25,7 @@ public class GradleProjectSettings extends ExternalProjectSettings {
private boolean resolveModulePerSourceSet = true;
@Nullable private CompositeBuild myCompositeBuild;
private boolean storeProjectFilesExternally = false;
private boolean storeProjectFilesExternally = true;
@Nullable
public String getGradleHome() {
@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.settings;
import com.intellij.openapi.components.PersistentStateComponent;
@@ -131,9 +129,7 @@ public class GradleSettings extends AbstractExternalSystemSettings<GradleSetting
// GradleProjectSettings has transient field isStoredExternally - used when no project yet,
// but when project created, isStoredExternally stored in the ExternalProjectsManagerImpl and we need to transfer it
for (GradleProjectSettings setting : settings) {
if (!setting.isStoreProjectFilesExternally()) {
setting.setStoreProjectFilesExternally(isStoredExternally);
}
setting.setStoreProjectFilesExternally(isStoredExternally);
}
return settings;
}