Post-build step: renaming the zip artifact

This commit is contained in:
Andrey Breslav
2012-01-27 21:24:07 +04:00
parent 8e54d78884
commit ea6b6f7495
3 changed files with 26 additions and 0 deletions
Generated
+8
View File
@@ -42,6 +42,14 @@
<maximumStackSize value="2" />
<properties />
</buildFile>
<buildFile url="file://$PROJECT_DIR$/plugin_post_build.xml">
<additionalClassPath />
<antReference projectDefault="true" />
<customJdkName value="" />
<maximumHeapSize value="128" />
<maximumStackSize value="2" />
<properties />
</buildFile>
</component>
</project>
+6
View File
@@ -1,6 +1,12 @@
<component name="ArtifactManager">
<artifact type="jar" name="KotlinPlugin">
<output-path>$PROJECT_DIR$/out/artifacts/KotlinPlugin</output-path>
<properties id="ant-postprocessing">
<options enabled="true">
<file>file://$PROJECT_DIR$/plugin_post_build.xml</file>
<target>renamePluginZip</target>
</options>
</properties>
<root id="archive" name="KotlinPlugin.zip">
<element id="directory" name="Kotlin">
<element id="directory" name="lib">
+12
View File
@@ -0,0 +1,12 @@
<project name="Kotlin Plugin Post-build Step">
<property name="artifact.output.path" value="${basedir}/out/artifacts/KotlinPlugin"/>
<property name="build.number" value="snapshot"/>
<target name="renamePluginZip">
<!-- Rename the zip to kotlin-plugin-${build}.zip-->
<echo message="${artifact.output.path}"/>
<move file="${artifact.output.path}/KotlinPlugin.zip" tofile="kotlin-plugin-${build.number}.zip">
</move>
</target>
</project>