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

## Target sf-run-analysis-yarp

Location

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

Conditional execution

No conditions on target execution.

### Description

### Target external Dependency

Name
cmd
perl
perl

### 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-run-analysis-yarp">
          <echo message="Running yarp over *_compile.log files"/>
          <for param="logfile">
            <path>
              <fileset dir="${build.log.dir}">
                <include name="*_compile.log"/>
                <exclude name="*build_check_compile.log"/>
              </fileset>
            </path>
            <sequential>
              <propertyregex override="yes" property="yarpfile" input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
              <propertyregex override="yes" property="yarpfile_short" input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
              <echo message="Yarping @{logfile}..."/>
              <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true">
                <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
                <arg value="@{logfile}"/>
                <arg value="${build.log.dir}/analysis/${yarpfile}"/>
              </exec>
              <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
                <arg value="/c"/>
                <arg value="echo"/>
                <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile},${build.drive}\output\logs\analysis\${yarpfile}"/>
              </exec>
            </sequential>
          </for>

          <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
            <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
            <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
          </exec>
          <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
        </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