mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 13:20:53 +07:00
Set Python plugin version from PyCharm ApplicationInfo.xml
This commit is contained in:
@@ -172,6 +172,19 @@ target(name: "compile", description: "Compile module python") {
|
||||
fileset(file: "${pluginHome}/build/python-plugin-dependencies.xml")
|
||||
}
|
||||
|
||||
// set version to PyCharm current version from ApplicationInfo.xml
|
||||
ant.loadfile(property: "appInfo", srcFile: "${home}/python/resources/idea/PyCharmCoreApplicationInfo.xml") {
|
||||
}
|
||||
|
||||
major = ("${appInfo}" =~ /major\s*=\s*\"([^"])\"/)[0][1]
|
||||
minor = ("${appInfo}" =~ /minor\s*=\s*\"([^"])\"/)[0][1]
|
||||
|
||||
|
||||
ant.replaceregexp(file: path,
|
||||
match: "@@PYCHARM_VERSION@@",
|
||||
replace: "${major}.${minor}")
|
||||
|
||||
// set since-build to the current idea build number
|
||||
ant.replace(file: "${classesDir}/META-INF/plugin.xml") {
|
||||
replacefilter(token: "@@BUILD_NUMBER@@", value: "${buildNumber}")
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ The Python plug-in provides smart editing for Python scripts. The feature set of
|
||||
]]></description>
|
||||
|
||||
<!-- <PyCharm version> <Build number> (<Beta>|<EAP>|<RC>)? -->
|
||||
<version>4.1 @@BUILD_NUMBER@@ EAP</version>
|
||||
<version>@@PYCHARM_VERSION@@ @@BUILD_NUMBER@@ EAP</version>
|
||||
<depends>com.intellij.modules.java</depends>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user