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

## Target sf-generate-source-spec

Location

`D:\maintools\sf-config\common\build.xml:150:`

Conditional execution

No conditions on target execution.

### Description

### Target external Dependency

Name
perl

### Property dependencies

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

### Target dependencies

### Source code

        <target name="sf-generate-source-spec" depends="sf-parse-project-config">

            <!-- Generate the sources.csv if hg cache is activated -->
            <if><istrue value="${sf.spec.sourcesync.usecache}"/>
                <then>
                    <echo message="Generating Hg local cache..."/>
                    <mkdir dir="${sf.common.config.dir}/generated"/>
                    <exec executable="perl" dir="${build.log.dir}" failonerror="true" output="${build.log.dir}/${build.id}_hgcache.log">
                        <arg value="${sf.common.config.dir}/tools/cachefiles.pl"/>
                        <arg value="${sf.spec.sourcesync.cachelocation}"/>
                        <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
                        <arg value="${sf.common.config.dir}/generated/${sf.spec.sourcesync.sourcespecfile}"/>
                    </exec>
                </then>
            </if>

            <!-- TODO: 1. Same file name souce-spec.ant.xml is used for all packages
            for multiple package builds, this needs to be linked with package name. -->
            <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
            <delete file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>

            <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl" outputFile="${sf.common.config.dir}/generated/source-spec.ant.xml">
                  <data expandProperties="yes">
                        ant: antProperties()
                        data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
                  </data>
            </fmpp>
        </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