diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/helium/target-sf-zip-logs.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/helium/target-sf-zip-logs.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + Target sf-zip-logs + + + + + + + + + + + + + + + + + +
+Helium API + +
+ + +
+ + + +

Target sf-zip-logs

+ +

Location

+

D:\maintools\sf-config\common\build.postbuild.xml:480: +

+ +

Conditional execution

+

No conditions on target execution.

+
+ +

Description

+

+

package all logs into zipfile before publish

+

+


+ + + + +

Property dependencies

+ + +

+ + + + + + + + + + + + + + + + + + + +
NameEdit status
User editable properties
build.driverecommended
Internal properties
build.iddiscouraged
build.log.dirdiscouraged
+

+ +
+ + +

Target dependencies

+

+sf-zip-logs dependencies + + + + +

+
+ + +

Source code

+
+    <target name="sf-zip-logs">
+        <if>
+            <istrue value="${sf.spec.logs.zip.enable}"/>
+            <then>
+                <property name="temp.log.dir" value="${env.TEMP}/${build.id}_output_logs"/>
+                <echo message="Zip log requested, zipping logs..."/>
+                <mkdir dir="${temp.log.dir}"/>
+                <zip destfile="${temp.log.dir}/build_logs.zip" basedir="${build.drive}"> 
+                    <include name="output/logs/**"/>
+                    <exclude name="output/logs/BOM/**"/>
+                    <exclude name="output/logs/deliverables/**"/>
+                    <exclude name="output/logs/releaseables/**"/>
+                </zip>
+                <zip destfile="${temp.log.dir}/build_BOM.zip">
+                    <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
+                    <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
+                </zip>
+                <move todir="${build.log.dir}">
+                    <fileset dir="${temp.log.dir}"/>
+                </move>
+            </then>
+        </if>
+    </target>
+
+ + +
+ + + + + + + + + + + + + +
+Helium API + +
+ + + Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. License: http://www.eclipse.org/legal/epl-v10.html + + + + +