overview | deprecated | properties-table | index | help
| Helium API
prev next | frames no frames

## 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

Name | Edit status
--- | ---
User editable properties
`build.drive` | recommended
Internal properties
`build.id` | discouraged
`build.log.dir` | discouraged

### Target 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>

overview | deprecated | properties-table | index | help
| Helium API
prev next | frames no frames

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. License: http://www.eclipse.org/legal/epl-v10.html