Commit 7cf49a16 authored by Ivan Chirkov's avatar Ivan Chirkov Committed by intellij-monorepo-bot
Browse files

IDEA-CR-56702 cleanup: `FORCE_PLUGIN_UPDATES` moved to `Main`

(cherry picked from commit f7b4bcd33c5608653fc10a27daee4d7c3ffa6957)

GitOrigin-RevId: 794a55dcdae34abf21161259658b9c3b5f7190c0
parent 379ea5d2
Branches unavailable Tags unavailable
No related merge requests found
Showing with 4 additions and 5 deletions
+4 -5
......@@ -74,7 +74,6 @@ import static com.intellij.diagnostic.LoadingState.LAF_INITIALIZED;
import static java.nio.file.attribute.PosixFilePermission.*;
public final class StartupUtil {
public static final String FORCE_PLUGIN_UPDATES = "idea.force.plugin.updates";
public static final String IDEA_CLASS_BEFORE_APPLICATION_PROPERTY = "idea.class.before.app";
@SuppressWarnings("SpellCheckingInspection") private static final String MAGIC_MAC_PATH = "/AppTranslocation/";
......
// Copyright 2000-2019 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 com.intellij.openapi.command.impl;
import com.intellij.idea.StartupUtil;
import com.intellij.idea.Main;
import com.intellij.openapi.application.ApplicationStarter;
import com.intellij.openapi.progress.EmptyProgressIndicator;
import com.intellij.openapi.updateSettings.impl.PluginDownloader;
......@@ -21,8 +21,8 @@ import java.util.stream.Stream;
* {@code idea.force.plugin.updates = "true"} system property to apply the updates.
*
* @author Konstantin Bulenkov
* @see StartupUtil#FORCE_PLUGIN_UPDATES
* @see StartupUtil#installPluginUpdates()
* @see Main#FORCE_PLUGIN_UPDATES
* @see Main#installPluginUpdates()
*/
public class UpdatePluginsApp implements ApplicationStarter {
@Override
......@@ -37,7 +37,7 @@ public class UpdatePluginsApp implements ApplicationStarter {
@Override
public void main(@NotNull String[] args) {
if (Boolean.getBoolean(StartupUtil.FORCE_PLUGIN_UPDATES)) {
if (Boolean.getBoolean(Main.FORCE_PLUGIN_UPDATES)) {
log("Updates applied.");
System.exit(0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment