common/build.postbuild.xml
changeset 1268 b69afcf5d763
parent 1265 85e3fec18491
child 1269 f959926bea0a
--- a/common/build.postbuild.xml	Tue Sep 21 16:22:39 2010 +0100
+++ b/common/build.postbuild.xml	Wed Sep 22 17:28:09 2010 +0100
@@ -990,6 +990,15 @@
         </copy>
         <mkdir dir="${publish.dir}/ats_reports"/>
         <copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/>
+        <if>
+            <istrue value="${sf.spec.publish.release.zips.enable}" />
+        <then>
+            <mkdir dir="${sf.spec.publish.release.zips.location}/${build.id}"/>
+			<copy todir="${sf.spec.publish.release.zips.location}/${build.id}" preservelastmodified="true" failonerror="false">
+				<fileset dir="${build.output.dir}/zips/release/"><include name="*.zip"/></fileset>
+			</copy>
+        </then>
+        </if>
     </target>
 
     <!-- TODO: Make this work for package builds once we have sysmodel story worked out -->