From 80fdfb244ae6db00fe672fdeaea34d39f59b293e Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Mon, 17 Feb 2014 15:02:11 +0100 Subject: [PATCH] Add build number to python plugin version. --- python/build/python_plugin_build.gant | 4 ++++ python/pluginResources/META-INF/plugin.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/python/build/python_plugin_build.gant b/python/build/python_plugin_build.gant index 0383e3e8b26e..261313a5afea 100644 --- a/python/build/python_plugin_build.gant +++ b/python/build/python_plugin_build.gant @@ -149,6 +149,10 @@ target(name: "compile", description: "Compile module python") { fileset(file: "${pluginHome}/pluginResources/META-INF/*.xml") } + ant.replace(file: "${classesDir}/META-INF/plugin.xml") { + replacefilter(token: "@@BUILD_NUMBER@@", value: "${buildNumber}") + } + ant.replaceregexp(file: "${classesDir}/META-INF/plugin.xml", match: "since-build=\"\\d+\\.\\d+\"", replace: "since-build=\"${ideaBuildNumber}\"") diff --git a/python/pluginResources/META-INF/plugin.xml b/python/pluginResources/META-INF/plugin.xml index a26af68b23d2..e3aa06f00a11 100644 --- a/python/pluginResources/META-INF/plugin.xml +++ b/python/pluginResources/META-INF/plugin.xml @@ -6,7 +6,7 @@ Python Community Edition Smart editing for Python scripts - 3.1 + 3.1.1.134.@@BUILD_NUMBER@@ com.intellij.modules.java