From 57c4f399d2977cc59dffeb49a58907a8278957fa Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Thu, 16 Feb 2017 19:06:25 +0300 Subject: [PATCH] Ability to customize Python Community plugin layout --- .../intellij/build/pycharm/PythonPluginPropertiesBase.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy b/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy index b2cd586b9f66..571cf6facd7b 100644 --- a/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy +++ b/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy @@ -42,7 +42,7 @@ abstract class PythonPluginPropertiesBase extends PyCharmPropertiesBase { super() } - PluginLayout pythonCommunityPluginLayout(String pluginVersion) { + PluginLayout pythonCommunityPluginLayout(String pluginVersion, @DelegatesTo(PluginLayout.PluginLayoutSpec) Closure body = {}) { def pluginXmlModules = [ "IntelliLang-python", "ipnb", @@ -53,6 +53,8 @@ abstract class PythonPluginPropertiesBase extends PyCharmPropertiesBase { excludeFromModule(module, "META-INF/plugin.xml") } excludeFromModule(pythonCommunityPluginModule, "META-INF/python-plugin-dependencies.xml") + body.delegate = delegate + body() } }