mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
enable external storage by default, part 2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user