Packing zip with bare plugin in post_build.
This commit is contained in:
+19
-8
@@ -17,6 +17,7 @@
|
|||||||
<property name="compiler.version.java.versioned" value="${compiler.version.java}.versioned" />
|
<property name="compiler.version.java.versioned" value="${compiler.version.java}.versioned" />
|
||||||
|
|
||||||
<property name="plugin.zip" value="${artifact.output.path}/kotlin-plugin-${build.number}.zip" />
|
<property name="plugin.zip" value="${artifact.output.path}/kotlin-plugin-${build.number}.zip" />
|
||||||
|
<property name="bare.plugin.zip" value="${artifact.output.path}/kotlin-bare-plugin-${build.number}.zip" />
|
||||||
|
|
||||||
<macrodef name="echoprop">
|
<macrodef name="echoprop">
|
||||||
<attribute name="prop"/>
|
<attribute name="prop"/>
|
||||||
@@ -96,16 +97,26 @@
|
|||||||
|
|
||||||
<target name="pre_build" depends="writeVersionToTemplateFiles, cleanupArtifacts"/>
|
<target name="pre_build" depends="writeVersionToTemplateFiles, cleanupArtifacts"/>
|
||||||
|
|
||||||
<target name="zipArtifact">
|
<target name="zipArtifacts">
|
||||||
<zip destfile="${plugin.zip}">
|
<macrodef name="zipPlugin">
|
||||||
<zipfileset prefix="Kotlin" dir="${artifact.output.path}/Kotlin" excludes="kotlinc/bin/*"/>
|
<attribute name="filename"/>
|
||||||
<zipfileset prefix="Kotlin/kotlinc/bin" dir="${artifact.output.path}/Kotlin/kotlinc/bin" includes="*.bat" filemode="644"/>
|
<attribute name="dir"/>
|
||||||
<zipfileset prefix="Kotlin/kotlinc/bin" dir="${artifact.output.path}/Kotlin/kotlinc/bin" excludes="*.bat" filemode="755"/>
|
|
||||||
</zip>
|
<sequential>
|
||||||
<delete dir="${artifact.output.path}/Kotlin" quiet="true"/>
|
<zip destfile="@{filename}">
|
||||||
|
<zipfileset prefix="@{dir}" dir="${artifact.output.path}/@{dir}" excludes="kotlinc/bin/*"/>
|
||||||
|
<zipfileset prefix="@{dir}/kotlinc/bin" dir="${artifact.output.path}/@{dir}/kotlinc/bin" includes="*.bat" filemode="644"/>
|
||||||
|
<zipfileset prefix="@{dir}/kotlinc/bin" dir="${artifact.output.path}/@{dir}/kotlinc/bin" excludes="*.bat" filemode="755"/>
|
||||||
|
</zip>
|
||||||
|
<delete dir="${artifact.output.path}/@{dir}" quiet="true"/>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<zipPlugin filename="${plugin.zip}" dir="Kotlin"/>
|
||||||
|
<zipPlugin filename="${bare.plugin.zip}" dir="BareKotlin"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="post_build" depends="zipArtifact, revertTemplateFiles"/>
|
<target name="post_build" depends="zipArtifacts, revertTemplateFiles"/>
|
||||||
|
|
||||||
<target name="none">
|
<target name="none">
|
||||||
<fail message="Either specify pre_build or post_build"/>
|
<fail message="Either specify pre_build or post_build"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user