Always place "since" and "until" attributes in plugin.xml for early notification about compatibility problems
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
<version>@snapshot@</version>
|
||||
<vendor url="http://www.jetbrains.com">JetBrains Inc.</vendor>
|
||||
|
||||
<idea-version since-build="ideaIC-120.305" until-build="ideaIC-120.9999" />
|
||||
|
||||
<depends optional="true">JUnit</depends>
|
||||
|
||||
<project-components>
|
||||
|
||||
@@ -60,11 +60,11 @@
|
||||
<unzip src="${plugin.path}" dest="${basedir}/plugin"/>
|
||||
<unzip src="${basedir}/plugin/Kotlin/lib/kotlin-plugin.jar" dest="${basedir}/plugin/jar"/>
|
||||
<move file="${basedir}/plugin/jar/META-INF/plugin.xml" tofile="${basedir}/plugin/jar/META-INF/plugin.xml.src"/>
|
||||
<xslt in="${basedir}/plugin/jar/META-INF/plugin.xml.src" out="${basedir}/plugin/jar/META-INF/plugin.xml"
|
||||
style="${basedir}/idea-version-tag.xsl">
|
||||
<param name="idea-since-version" expression="${idea.version}"/>
|
||||
<param name="idea-until-version" expression="IC-117.9999" /> <!-- TODO: Change to valid dynamic value -->
|
||||
</xslt>
|
||||
|
||||
<!-- Replace until version with the version plugin is going to be verified:
|
||||
match: until-build=\"[^\"]*\" -->
|
||||
<replaceregexp file="${basedir}/plugin/jar/META-INF/plugin.xml" match="until-build=\"[^\"]*\"" replace="until-build="${idea.version}""/>
|
||||
|
||||
<zip destfile="${basedir}/plugin/Kotlin/lib/kotlin-plugin.jar" update="true" basedir="${basedir}/plugin/jar" includes="META-INF/plugin.xml" />
|
||||
<delete file="${plugin.path}"/>
|
||||
<zip destfile="${plugin.path}" basedir="${basedir}/plugin" includes="Kotlin/**/*"/>
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output omit-xml-declaration="yes" indent="yes" />
|
||||
<xsl:param name="idea-since-version" />
|
||||
<xsl:param name="idea-until-version" />
|
||||
|
||||
|
||||
<xsl:template match="node()|@*" name="identity">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="vendor">
|
||||
<xsl:call-template name="identity"/>
|
||||
<xsl:text>
|
||||
|
||||
</xsl:text><idea-version since-build="{$idea-since-version}" until-build="{$idea-until-version}"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user