doc/api/helium/target-sf-brag-to-diamonds.html
author Simon Howkins <simonh@symbian.org>
Mon, 30 Nov 2009 12:52:31 +0000
changeset 799 49167a0e38cf
parent 627 56a1d97e7c73
permissions -rw-r--r--
Small changes to make the output file more regular, and therefor easier to read and understand.


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd xhtml 1.0 strict//en"
      "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<head>
    <meta name="keywords" content="helium"/>
    <meta http-equiv="content-type" content="text/html+xml; charset=iso-8859-1"/>
    <link rel="stylesheet" href="stylesheet.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:   '',
        VERSION:    '0'
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>

    <script type="text/javascript" src="../_static/interface.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    
    <title>Target sf-brag-to-diamonds</title>
</head>


<body>
<!-- ========= start of top navbar ======= -->
<a name="navbar_top"><!-- --></a>
<a href="#skip-navbar_top" title="skip navigation links"></a>
<table border="0" width="100%" cellpadding="1" cellspacing="0" summary="">
<tr>
<td colspan="2" bgcolor="#eeeeff" class="navbarcell1">
<a name="navbar_top_firstrow"><!-- --></a>
<table border="0" cellpadding="0" cellspacing="3" summary="">
  <tr align="center" valign="top">
  <td bgcolor="#ffffff" class="navbarcell1"> &#160;<a href="overview-summary.html"><font class="navbarfont1"><b>overview</b></font>&#160;</a></td>

  <td bgcolor="#ffffff" class="navbarcell1">    <a href="deprecated-list.html"><font class="navbarfont1"><b>deprecated</b></font></a>&#160;</td>
    
  <td bgcolor="#eeeeff" class="navbarcell1">    <a href="properties-table.html"><font class="navbarfont1"><b>properties-table</b></font></a>&#160;</td>  
  <td bgcolor="#eeeeff" class="navbarcell1">    <a href="index-1.html"><font class="navbarfont1"><b>index</b></font></a>&#160;</td>
  <td bgcolor="#eeeeff" class="navbarcell1">    <a href="help.html"><font class="navbarfont1"><b>help</b></font></a>&#160;</td>
  </tr>
</table>
</td>
<td align="right" valign="top" rowspan="3"><em>
<b>Helium API</b></em>

</td>
</tr>

<tr>
<td bgcolor="white" class="navbarcell2"><font size="-2">
&#160;prev&#160;
&#160;next</font></td>
<td bgcolor="white" class="navbarcell2"><font size="-2">
  <a href="index.html?overview-summary.html" target="_top"><b>frames</b></a>  &#160;
&#160;<a href="overview-summary.html" target="_top"><b>no frames</b></a>  &#160;

&#160;<script type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<a href="allclasses-noframe.html"><b>all classes</b></a>');
  }
  //-->
</script>
<noscript>
  <a href="allclasses-noframe.html"><b>all classes</b></a>
</noscript>


</font></td>
</tr>
</table>
<a name="skip-navbar_top"></a>
<!-- ========= end of top navbar ========= -->
    <hr/>


    
<h2>Target sf-brag-to-diamonds</h2>

<p><b>Location</b></p>
<p>    <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.postbuild.xml#L507">d:\maintools\sf-config\common\build.postbuild.xml:507:</a></tt>  
</p>

<p><b>Conditional execution</b></p>        
<p>No conditions on target execution.</p>
<hr/>

<h3>Description</h3>
<p>
</p>
<p/>
<hr/>


<h3>Target external Dependency</h3>
<p> 
<table class="docutils" width="50%">
    <tr>
        <th class="head">Name</th>
    </tr>
        <tr>
                    <td>perl</td>
            </tr>
        <tr>
                    <td>python</td>
            </tr>
</table>
</p>


<h3>Property dependencies</h3>


<p> 
<table class="docutils" width="50%">
    <tr>
        <th class="head">Name</th><th class="head">Edit status</th>
    </tr>
    <tr>
        <td colspan="2">User editable properties</td>
    </tr>
    <tr>
        <td colspan="2">Internal properties</td>
    </tr>
                    <tr>
                        <td><a href="property-build.log.dir.html" title="<p>This is where the build logs are stored.</p>" target="classframe"><tt class="docutils literal">build.log.dir</tt></a></td><td><a href="help.html" title="Help" target="classframe">discouraged</a></td>
                    </tr>
                    <tr>
                        <td><a href="property-diamonds.build.id.html" title="<p>The ID assigned to the build by the Diamonds server.</p>" target="classframe"><tt class="docutils literal">diamonds.build.id</tt></a></td><td><a href="help.html" title="Help" target="classframe">never</a></td>
                    </tr>
                    <tr>
                        <td><a href="property-diamonds.host.html" title="<p>Diamonds server&#39;s host address.</p>" target="classframe"><tt class="docutils literal">diamonds.host</tt></a></td><td><a href="help.html" title="Help" target="classframe">discouraged</a></td>
                    </tr>
                    <tr>
                        <td><a href="property-temp.build.dir.html" title="<p>Directory to store temporary files generated during the process.</p>" target="classframe"><tt class="docutils literal">temp.build.dir</tt></a></td><td><a href="help.html" title="Help" target="classframe">never</a></td>
                    </tr>
</table>
</p>

<hr/>


<h3>Target dependencies</h3>
<p align="center">
<img src="target-sf-brag-to-diamonds.dot.png" alt="sf-brag-to-diamonds dependencies" usemap="#dependencies"
     style="border-style: none"/>
<map name="dependencies" id="dependencies">
<area shape="rect" id="node1" href="target-sf-brag-to-diamonds.html" title="sf&#45;brag&#45;to&#45;diamonds" alt="" coords="173,5,336,53">
<area shape="rect" id="node2" href="target-sf-run-analysis.html" title="sf&#45;run&#45;analysis" alt="" coords="5,5,125,53">
</map>
</p>
<hr/>


<h3>Source code</h3>
<pre>
    &lt;target name=&quot;sf-brag-to-diamonds&quot;&gt;
        &lt;!-- Merge all our bits of XML together --&gt;
        &lt;exec executable=&quot;perl&quot; output=&quot;${build.log.dir}/summary/_BRAG.xml&quot;&gt;
            &lt;arg value=&quot;${sf.common.config.dir}/tools/mergeXML.pl&quot;/&gt;
            &lt;arg value=&quot;--xsl=brag.xsl&quot;/&gt;
            &lt;arg value=&quot;--merge=buildStatus,phase(name),step(name),failures(level)&quot;/&gt;
            &lt;arg value=&quot;${build.log.dir}/summary/*?_BRAG.xml&quot;/&gt;
        &lt;/exec&gt;
        &lt;!-- Run XSL transform to create file to send to diamonds --&gt;
        &lt;java jar=&quot;${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar&quot; fork=&quot;true&quot;&gt;
            &lt;arg value=&quot;-IN&quot;/&gt;
            &lt;arg value=&quot;${build.log.dir}/summary/_BRAG.xml&quot;/&gt;
            &lt;arg value=&quot;-XSL&quot;/&gt;
            &lt;arg value=&quot;${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl&quot;/&gt;
            &lt;arg value=&quot;-OUT&quot;/&gt;
            &lt;arg value=&quot;${temp.build.dir}/bragForDiamonds.xml&quot;/&gt;
        &lt;/java&gt;
        &lt;if&gt;
            &lt;istrue value=&quot;${sf.spec.publish.enable}&quot;/&gt;
            &lt;then&gt;
                &lt;!-- Try to obtain the diamonds ID for this build --&gt;
                &lt;if&gt;
                    &lt;not&gt;&lt;isset property=&quot;diamonds.build.id&quot;/&gt;&lt;/not&gt;
                    &lt;then&gt;
                        &lt;property file=&quot;${build.log.dir}/diamonds_build_id.properties&quot;/&gt; &lt;!-- This will fail silently --&gt;
                    &lt;/then&gt;
                &lt;/if&gt;
                &lt;if&gt;
                    &lt;isset property=&quot;diamonds.build.id&quot;/&gt;
                    &lt;then&gt;
                        &lt;!-- Send the data to the server --&gt;
                        &lt;exec executable=&quot;python&quot;&gt;
                            &lt;arg value=&quot;${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py&quot;/&gt;
                            &lt;arg value=&quot;-s&quot;/&gt;
                            &lt;arg value=&quot;${diamonds.host}&quot;/&gt;
                            &lt;arg value=&quot;-u&quot;/&gt;
                            &lt;arg value=&quot;${diamonds.build.id}&quot;/&gt;
                            &lt;arg value=&quot;-f&quot;/&gt;
                            &lt;arg value=&quot;${temp.build.dir}/bragForDiamonds.xml&quot;/&gt;
                        &lt;/exec&gt;
                    &lt;/then&gt;
                    &lt;else&gt;
                        &lt;echo message=&quot;diamonds.build.id is not known - unable to push any build specific information to diamonds server&quot;/&gt;
                    &lt;/else&gt;
                &lt;/if&gt;
            &lt;/then&gt;
        &lt;/if&gt;
    &lt;/target&gt;
</pre>


    <hr/>
<!-- ========= start of top navbar ======= -->
<a name="navbar_top"><!-- --></a>
<a href="#skip-navbar_top" title="skip navigation links"></a>
<table border="0" width="100%" cellpadding="1" cellspacing="0" summary="">
<tr>
<td colspan="2" bgcolor="#eeeeff" class="navbarcell1">
<a name="navbar_top_firstrow"><!-- --></a>
<table border="0" cellpadding="0" cellspacing="3" summary="">
  <tr align="center" valign="top">
  <td bgcolor="#ffffff" class="navbarcell1"> &#160;<a href="overview-summary.html"><font class="navbarfont1"><b>overview</b></font>&#160;</a></td>

  <td bgcolor="#ffffff" class="navbarcell1">    <a href="deprecated-list.html"><font class="navbarfont1"><b>deprecated</b></font></a>&#160;</td>
    
  <td bgcolor="#eeeeff" class="navbarcell1">    <a href="properties-table.html"><font class="navbarfont1"><b>properties-table</b></font></a>&#160;</td>  
  <td bgcolor="#eeeeff" class="navbarcell1">    <a href="index-1.html"><font class="navbarfont1"><b>index</b></font></a>&#160;</td>
  <td bgcolor="#eeeeff" class="navbarcell1">    <a href="help.html"><font class="navbarfont1"><b>help</b></font></a>&#160;</td>
  </tr>
</table>
</td>
<td align="right" valign="top" rowspan="3"><em>
<b>Helium API</b></em>

</td>
</tr>

<tr>
<td bgcolor="white" class="navbarcell2"><font size="-2">
&#160;prev&#160;
&#160;next</font></td>
<td bgcolor="white" class="navbarcell2"><font size="-2">
  <a href="index.html?overview-summary.html" target="_top"><b>frames</b></a>  &#160;
&#160;<a href="overview-summary.html" target="_top"><b>no frames</b></a>  &#160;

&#160;<script type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<a href="allclasses-noframe.html"><b>all classes</b></a>');
  }
  //-->
</script>
<noscript>
  <a href="allclasses-noframe.html"><b>all classes</b></a>
</noscript>


</font></td>
</tr>
</table>
<a name="skip-navbar_top"></a>
<!-- ========= end of top navbar ========= -->
    <font size="-2">Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. License: http://www.eclipse.org/legal/epl-v10.html</font>
 </body>

</html>