Enable plugin verifier in build
This commit is contained in:
@@ -6,6 +6,7 @@ confluence/target
|
|||||||
out
|
out
|
||||||
dist
|
dist
|
||||||
ideaSDK
|
ideaSDK
|
||||||
|
PluginVerifier
|
||||||
.idea/dictionaries/yozh.xml
|
.idea/dictionaries/yozh.xml
|
||||||
.idea/codeStyleSettings.xml
|
.idea/codeStyleSettings.xml
|
||||||
.idea/workspace.xml
|
.idea/workspace.xml
|
||||||
|
|||||||
+16
-2
@@ -2,10 +2,15 @@
|
|||||||
<import file="build.xml" optional="false"/>
|
<import file="build.xml" optional="false"/>
|
||||||
|
|
||||||
<property name="build.number" value="snapshot"/>
|
<property name="build.number" value="snapshot"/>
|
||||||
|
<property name="jdk16.home" value="${java.home}"/>
|
||||||
|
|
||||||
<property name="artifact.output.path" value="${basedir}/out/artifacts"/>
|
<property name="artifact.output.path" value="${basedir}/out/artifacts"/>
|
||||||
<property name="plugin.xml" value="idea/src/META-INF/plugin.xml"/>
|
<property name="plugin.xml" value="idea/src/META-INF/plugin.xml"/>
|
||||||
<property name="plugin.xml.bk" value="${plugin.xml}.bk"/>
|
<property name="plugin.xml.bk" value="${plugin.xml}.bk"/>
|
||||||
|
|
||||||
|
<property name="plugin.verifier" value="${basedir}/PluginVerifier/plugin-verifier-1.0-SNAPSHOT.jar"/>
|
||||||
|
<property name="plugin.zip" value="${artifact.output.path}/kotlin-plugin-${build.number}.zip" />
|
||||||
|
|
||||||
<macrodef name="echoprop">
|
<macrodef name="echoprop">
|
||||||
<attribute name="prop"/>
|
<attribute name="prop"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
@@ -55,13 +60,22 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="zipArtifact">
|
<target name="zipArtifact">
|
||||||
<zip destfile="${artifact.output.path}/kotlin-plugin-${build.number}.zip">
|
<zip destfile="${plugin.zip}">
|
||||||
<zipfileset prefix="Kotlin" dir="${artifact.output.path}/Kotlin"/>
|
<zipfileset prefix="Kotlin" dir="${artifact.output.path}/Kotlin"/>
|
||||||
</zip>
|
</zip>
|
||||||
<delete dir="${artifact.output.path}/Kotlin" quiet="true"/>
|
<delete dir="${artifact.output.path}/Kotlin" quiet="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="post_build" depends="cleanupPluginXml, zipArtifact"/>
|
<target name="verifyPlugin">
|
||||||
|
<java fork="true" failonerror="true" jar="${plugin.verifier}">
|
||||||
|
<arg value="-r" />
|
||||||
|
<arg value="${jdk16.home}" />
|
||||||
|
<arg value="${plugin.zip}" />
|
||||||
|
<arg value="${basedir}/ideaSDK" />
|
||||||
|
</java>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="post_build" depends="cleanupPluginXml, zipArtifact, verifyPlugin"/>
|
||||||
|
|
||||||
<target name="none">
|
<target name="none">
|
||||||
<fail message="Either specify pre_build or post_build"/>
|
<fail message="Either specify pre_build or post_build"/>
|
||||||
|
|||||||
@@ -13,8 +13,12 @@
|
|||||||
<attribute name="teamcity" default="http://teamcity.jetbrains.com"/>
|
<attribute name="teamcity" default="http://teamcity.jetbrains.com"/>
|
||||||
<attribute name="teamcity.build" default="bt343"/>
|
<attribute name="teamcity.build" default="bt343"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
|
<delete dir="PluginVerifier" failonerror="false" />
|
||||||
|
<get src="http://teamcity.jetbrains.com/guestAuth/repository/download/bt351/.lastSuccessful/plugin-verifier-1.0-SNAPSHOT.jar" dest="PluginVerifier" />
|
||||||
|
|
||||||
<property name="core" value="ideaSDK/core"/>
|
<property name="core" value="ideaSDK/core"/>
|
||||||
<property name="tc" value="@{teamcity}/guestAuth/repository/download/@{teamcity.build}/.lastSuccessful"/>
|
<property name="tc" value="@{teamcity}/guestAuth/repository/download/@{teamcity.build}/.lastSuccessful"/>
|
||||||
|
|
||||||
<delete dir="ideaSDK" failonerror="false">
|
<delete dir="ideaSDK" failonerror="false">
|
||||||
<exclude name="config/**"/>
|
<exclude name="config/**"/>
|
||||||
<exclude name="system/**"/>
|
<exclude name="system/**"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user