Add zipfile validation to packaging PDK_2.0.d
authorShabe Razvi <shaber@symbian.org>
Fri, 17 Jul 2009 15:59:29 +0100
changeset 289 633b96a83005
parent 288 a0e85954c23c
child 290 5ee8d148ce40
Add zipfile validation to packaging
common/build.xml
--- a/common/build.xml	Fri Jul 17 15:41:24 2009 +0100
+++ b/common/build.xml	Fri Jul 17 15:59:29 2009 +0100
@@ -356,6 +356,9 @@
                 <echo message="INFO Packaging Binaries"/>
                 <runtarget target="sf-package-binary"/>
                 <runtarget target="sf-package-tools"/>
+
+                <echo message="INFO Validate Zip files"/>
+                <runtarget target="sf-package-validate"/>
             </then>
         </if>
         </parallel>
@@ -889,7 +892,18 @@
         </sequential>
       </for>
     </target>
-  
+
+    <target name="sf-package-validate">
+        <exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log">
+            <arg value="t"/>
+            <arg value="*.zip"/>
+        </exec>  
+        <exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log">
+            <arg value="t"/>
+            <arg value="*.zip"/>
+        </exec>  
+    </target>
+
     <target name="sf-run-evalid">
         <delete dir="${build.drive}/output/md5"/>
         <mkdir  dir="${build.drive}/output/md5"/>