From 7bf7782579ad20e45b41049867d166a070bbb53d Mon Sep 17 00:00:00 2001 From: Sergey Simonchik Date: Mon, 2 Dec 2024 00:08:58 +0100 Subject: [PATCH] [build] no need to patch the Database plugin for WebStorm as it's bundled with WebStorm 2024.3 (WEB-68774) And bundled plugins are not available as artifacts in `WS-plugins/auto-uploading` directory => the Database plugin is no longer uploaded to the Marketplace as a part of the WebStorm release process. GitOrigin-RevId: 38165b36050dab4b124736450e8ef59668c1cedf --- .../intellij/build/impl/PluginXmlPatcher.kt | 34 ------------------ .../intellij/build/PluginXmlPatcherTest.kt | 35 ------------------- 2 files changed, 69 deletions(-) diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PluginXmlPatcher.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PluginXmlPatcher.kt index 80b0b78edc71e..ffeae831a3401 100644 --- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PluginXmlPatcher.kt +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PluginXmlPatcher.kt @@ -137,28 +137,6 @@ fun doPatchPluginXml( } } - // patch Database plugin for WebStorm, see WEB-48278 - if (toPublish && productDescriptor != null && productDescriptor.getAttributeValue("code") == "PDB") { - Span.current().addEvent("patch $pluginModuleName for WebStorm") - val pluginName = rootElement.getChild("name") - check(pluginName.text == "Database Tools and SQL") { "Plugin name for '$pluginModuleName' should be 'Database Tools and SQL'" } - pluginName.text = "Database Tools and SQL for WebStorm" - val description = rootElement.getChild("description") - val replaced1 = replaceInElementText(element = description, oldText = "IntelliJ-based IDEs", newText = "WebStorm") - check(replaced1) { "Could not find 'IntelliJ-based IDEs' in plugin description of $pluginModuleName" } - - val oldText = "The plugin provides all the same features as DataGrip, the standalone JetBrains IDE for databases." - val replaced2 = replaceInElementText( - element = description, - oldText = oldText, - newText = """ - The plugin provides all the same features as DataGrip, the standalone JetBrains IDE for databases. - Owners of an active DataGrip subscription can download the plugin for free. - The plugin is also included in All Products Pack and Student Pack. - """.trimIndent() - ) - check(replaced2) { "Could not find '$oldText' in plugin description of $pluginModuleName" } - } return rootElement } @@ -183,18 +161,6 @@ fun getOrCreateTopElement(rootElement: Element, tagName: String, anchors: List - Database Tools and SQL - com.intellij.database - - -
- The plugin provides all the same features as DataGrip, the standalone JetBrains IDE for databases. -

- ]]> -
- - """.trimIndent(), - """ - - Database Tools and SQL for WebStorm - com.intellij.database - x-plugin-version - - - The Database Tools and SQL plugin for WebStorm allows you to query, create, and manage databases and provides full SQL language support. - <br><br> - The plugin provides all the same features as <a href="https://www.jetbrains.com/datagrip/">DataGrip</a>, the standalone JetBrains IDE for databases. - Owners of an active DataGrip subscription can download the plugin for free. - The plugin is also included in <a href="https://www.jetbrains.com/all/">All Products Pack</a> and <a href="https://www.jetbrains.com/community/education/">Student Pack</a>. - <br><br> - - """.trimIndent(), - toPublish = true, - ) - @Test fun doNotPatchDatabasePluginIfBundled() = assertTransform( """