doc/api/helium/target-sf-brag-to-diamonds.html
changeset 627 56a1d97e7c73
equal deleted inserted replaced
607:3c858aa7a023 627:56a1d97e7c73
       
     1 
       
     2 <?xml version="1.0" encoding="utf-8"?>
       
     3 <!DOCTYPE HTML PUBLIC "-//w3c//dtd xhtml 1.0 strict//en"
       
     4       "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
       
     5 <html xmlns="http://www.w3.org/1999/xhtml">
       
     6 
       
     7 
       
     8 <head>
       
     9     <meta name="keywords" content="helium"/>
       
    10     <meta http-equiv="content-type" content="text/html+xml; charset=iso-8859-1"/>
       
    11     <link rel="stylesheet" href="stylesheet.css" type="text/css" />
       
    12     <script type="text/javascript">
       
    13       var DOCUMENTATION_OPTIONS = {
       
    14         URL_ROOT:   '',
       
    15         VERSION:    '0'
       
    16       };
       
    17     </script>
       
    18     <script type="text/javascript" src="../_static/jquery.js"></script>
       
    19 
       
    20     <script type="text/javascript" src="../_static/interface.js"></script>
       
    21     <script type="text/javascript" src="../_static/doctools.js"></script>
       
    22     
       
    23     <title>Target sf-brag-to-diamonds</title>
       
    24 </head>
       
    25 
       
    26 
       
    27 <body>
       
    28 <!-- ========= start of top navbar ======= -->
       
    29 <a name="navbar_top"><!-- --></a>
       
    30 <a href="#skip-navbar_top" title="skip navigation links"></a>
       
    31 <table border="0" width="100%" cellpadding="1" cellspacing="0" summary="">
       
    32 <tr>
       
    33 <td colspan="2" bgcolor="#eeeeff" class="navbarcell1">
       
    34 <a name="navbar_top_firstrow"><!-- --></a>
       
    35 <table border="0" cellpadding="0" cellspacing="3" summary="">
       
    36   <tr align="center" valign="top">
       
    37   <td bgcolor="#ffffff" class="navbarcell1"> &#160;<a href="overview-summary.html"><font class="navbarfont1"><b>overview</b></font>&#160;</a></td>
       
    38 
       
    39   <td bgcolor="#ffffff" class="navbarcell1">    <a href="deprecated-list.html"><font class="navbarfont1"><b>deprecated</b></font></a>&#160;</td>
       
    40     
       
    41   <td bgcolor="#eeeeff" class="navbarcell1">    <a href="properties-table.html"><font class="navbarfont1"><b>properties-table</b></font></a>&#160;</td>  
       
    42   <td bgcolor="#eeeeff" class="navbarcell1">    <a href="index-1.html"><font class="navbarfont1"><b>index</b></font></a>&#160;</td>
       
    43   <td bgcolor="#eeeeff" class="navbarcell1">    <a href="help.html"><font class="navbarfont1"><b>help</b></font></a>&#160;</td>
       
    44   </tr>
       
    45 </table>
       
    46 </td>
       
    47 <td align="right" valign="top" rowspan="3"><em>
       
    48 <b>Helium API</b></em>
       
    49 
       
    50 </td>
       
    51 </tr>
       
    52 
       
    53 <tr>
       
    54 <td bgcolor="white" class="navbarcell2"><font size="-2">
       
    55 &#160;prev&#160;
       
    56 &#160;next</font></td>
       
    57 <td bgcolor="white" class="navbarcell2"><font size="-2">
       
    58   <a href="index.html?overview-summary.html" target="_top"><b>frames</b></a>  &#160;
       
    59 &#160;<a href="overview-summary.html" target="_top"><b>no frames</b></a>  &#160;
       
    60 
       
    61 &#160;<script type="text/javascript">
       
    62   <!--
       
    63   if(window==top) {
       
    64     document.writeln('<a href="allclasses-noframe.html"><b>all classes</b></a>');
       
    65   }
       
    66   //-->
       
    67 </script>
       
    68 <noscript>
       
    69   <a href="allclasses-noframe.html"><b>all classes</b></a>
       
    70 </noscript>
       
    71 
       
    72 
       
    73 </font></td>
       
    74 </tr>
       
    75 </table>
       
    76 <a name="skip-navbar_top"></a>
       
    77 <!-- ========= end of top navbar ========= -->
       
    78     <hr/>
       
    79 
       
    80 
       
    81     
       
    82 <h2>Target sf-brag-to-diamonds</h2>
       
    83 
       
    84 <p><b>Location</b></p>
       
    85 <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>  
       
    86 </p>
       
    87 
       
    88 <p><b>Conditional execution</b></p>        
       
    89 <p>No conditions on target execution.</p>
       
    90 <hr/>
       
    91 
       
    92 <h3>Description</h3>
       
    93 <p>
       
    94 </p>
       
    95 <p/>
       
    96 <hr/>
       
    97 
       
    98 
       
    99 <h3>Target external Dependency</h3>
       
   100 <p> 
       
   101 <table class="docutils" width="50%">
       
   102     <tr>
       
   103         <th class="head">Name</th>
       
   104     </tr>
       
   105         <tr>
       
   106                     <td>perl</td>
       
   107             </tr>
       
   108         <tr>
       
   109                     <td>python</td>
       
   110             </tr>
       
   111 </table>
       
   112 </p>
       
   113 
       
   114 
       
   115 <h3>Property dependencies</h3>
       
   116 
       
   117 
       
   118 <p> 
       
   119 <table class="docutils" width="50%">
       
   120     <tr>
       
   121         <th class="head">Name</th><th class="head">Edit status</th>
       
   122     </tr>
       
   123     <tr>
       
   124         <td colspan="2">User editable properties</td>
       
   125     </tr>
       
   126     <tr>
       
   127         <td colspan="2">Internal properties</td>
       
   128     </tr>
       
   129                     <tr>
       
   130                         <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>
       
   131                     </tr>
       
   132                     <tr>
       
   133                         <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>
       
   134                     </tr>
       
   135                     <tr>
       
   136                         <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>
       
   137                     </tr>
       
   138                     <tr>
       
   139                         <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>
       
   140                     </tr>
       
   141 </table>
       
   142 </p>
       
   143 
       
   144 <hr/>
       
   145 
       
   146 
       
   147 <h3>Target dependencies</h3>
       
   148 <p align="center">
       
   149 <img src="target-sf-brag-to-diamonds.dot.png" alt="sf-brag-to-diamonds dependencies" usemap="#dependencies"
       
   150      style="border-style: none"/>
       
   151 <map name="dependencies" id="dependencies">
       
   152 <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">
       
   153 <area shape="rect" id="node2" href="target-sf-run-analysis.html" title="sf&#45;run&#45;analysis" alt="" coords="5,5,125,53">
       
   154 </map>
       
   155 </p>
       
   156 <hr/>
       
   157 
       
   158 
       
   159 <h3>Source code</h3>
       
   160 <pre>
       
   161     &lt;target name=&quot;sf-brag-to-diamonds&quot;&gt;
       
   162         &lt;!-- Merge all our bits of XML together --&gt;
       
   163         &lt;exec executable=&quot;perl&quot; output=&quot;${build.log.dir}/summary/_BRAG.xml&quot;&gt;
       
   164             &lt;arg value=&quot;${sf.common.config.dir}/tools/mergeXML.pl&quot;/&gt;
       
   165             &lt;arg value=&quot;--xsl=brag.xsl&quot;/&gt;
       
   166             &lt;arg value=&quot;--merge=buildStatus,phase(name),step(name),failures(level)&quot;/&gt;
       
   167             &lt;arg value=&quot;${build.log.dir}/summary/*?_BRAG.xml&quot;/&gt;
       
   168         &lt;/exec&gt;
       
   169         &lt;!-- Run XSL transform to create file to send to diamonds --&gt;
       
   170         &lt;java jar=&quot;${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar&quot; fork=&quot;true&quot;&gt;
       
   171             &lt;arg value=&quot;-IN&quot;/&gt;
       
   172             &lt;arg value=&quot;${build.log.dir}/summary/_BRAG.xml&quot;/&gt;
       
   173             &lt;arg value=&quot;-XSL&quot;/&gt;
       
   174             &lt;arg value=&quot;${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl&quot;/&gt;
       
   175             &lt;arg value=&quot;-OUT&quot;/&gt;
       
   176             &lt;arg value=&quot;${temp.build.dir}/bragForDiamonds.xml&quot;/&gt;
       
   177         &lt;/java&gt;
       
   178         &lt;if&gt;
       
   179             &lt;istrue value=&quot;${sf.spec.publish.enable}&quot;/&gt;
       
   180             &lt;then&gt;
       
   181                 &lt;!-- Try to obtain the diamonds ID for this build --&gt;
       
   182                 &lt;if&gt;
       
   183                     &lt;not&gt;&lt;isset property=&quot;diamonds.build.id&quot;/&gt;&lt;/not&gt;
       
   184                     &lt;then&gt;
       
   185                         &lt;property file=&quot;${build.log.dir}/diamonds_build_id.properties&quot;/&gt; &lt;!-- This will fail silently --&gt;
       
   186                     &lt;/then&gt;
       
   187                 &lt;/if&gt;
       
   188                 &lt;if&gt;
       
   189                     &lt;isset property=&quot;diamonds.build.id&quot;/&gt;
       
   190                     &lt;then&gt;
       
   191                         &lt;!-- Send the data to the server --&gt;
       
   192                         &lt;exec executable=&quot;python&quot;&gt;
       
   193                             &lt;arg value=&quot;${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py&quot;/&gt;
       
   194                             &lt;arg value=&quot;-s&quot;/&gt;
       
   195                             &lt;arg value=&quot;${diamonds.host}&quot;/&gt;
       
   196                             &lt;arg value=&quot;-u&quot;/&gt;
       
   197                             &lt;arg value=&quot;${diamonds.build.id}&quot;/&gt;
       
   198                             &lt;arg value=&quot;-f&quot;/&gt;
       
   199                             &lt;arg value=&quot;${temp.build.dir}/bragForDiamonds.xml&quot;/&gt;
       
   200                         &lt;/exec&gt;
       
   201                     &lt;/then&gt;
       
   202                     &lt;else&gt;
       
   203                         &lt;echo message=&quot;diamonds.build.id is not known - unable to push any build specific information to diamonds server&quot;/&gt;
       
   204                     &lt;/else&gt;
       
   205                 &lt;/if&gt;
       
   206             &lt;/then&gt;
       
   207         &lt;/if&gt;
       
   208     &lt;/target&gt;
       
   209 </pre>
       
   210 
       
   211 
       
   212     <hr/>
       
   213 <!-- ========= start of top navbar ======= -->
       
   214 <a name="navbar_top"><!-- --></a>
       
   215 <a href="#skip-navbar_top" title="skip navigation links"></a>
       
   216 <table border="0" width="100%" cellpadding="1" cellspacing="0" summary="">
       
   217 <tr>
       
   218 <td colspan="2" bgcolor="#eeeeff" class="navbarcell1">
       
   219 <a name="navbar_top_firstrow"><!-- --></a>
       
   220 <table border="0" cellpadding="0" cellspacing="3" summary="">
       
   221   <tr align="center" valign="top">
       
   222   <td bgcolor="#ffffff" class="navbarcell1"> &#160;<a href="overview-summary.html"><font class="navbarfont1"><b>overview</b></font>&#160;</a></td>
       
   223 
       
   224   <td bgcolor="#ffffff" class="navbarcell1">    <a href="deprecated-list.html"><font class="navbarfont1"><b>deprecated</b></font></a>&#160;</td>
       
   225     
       
   226   <td bgcolor="#eeeeff" class="navbarcell1">    <a href="properties-table.html"><font class="navbarfont1"><b>properties-table</b></font></a>&#160;</td>  
       
   227   <td bgcolor="#eeeeff" class="navbarcell1">    <a href="index-1.html"><font class="navbarfont1"><b>index</b></font></a>&#160;</td>
       
   228   <td bgcolor="#eeeeff" class="navbarcell1">    <a href="help.html"><font class="navbarfont1"><b>help</b></font></a>&#160;</td>
       
   229   </tr>
       
   230 </table>
       
   231 </td>
       
   232 <td align="right" valign="top" rowspan="3"><em>
       
   233 <b>Helium API</b></em>
       
   234 
       
   235 </td>
       
   236 </tr>
       
   237 
       
   238 <tr>
       
   239 <td bgcolor="white" class="navbarcell2"><font size="-2">
       
   240 &#160;prev&#160;
       
   241 &#160;next</font></td>
       
   242 <td bgcolor="white" class="navbarcell2"><font size="-2">
       
   243   <a href="index.html?overview-summary.html" target="_top"><b>frames</b></a>  &#160;
       
   244 &#160;<a href="overview-summary.html" target="_top"><b>no frames</b></a>  &#160;
       
   245 
       
   246 &#160;<script type="text/javascript">
       
   247   <!--
       
   248   if(window==top) {
       
   249     document.writeln('<a href="allclasses-noframe.html"><b>all classes</b></a>');
       
   250   }
       
   251   //-->
       
   252 </script>
       
   253 <noscript>
       
   254   <a href="allclasses-noframe.html"><b>all classes</b></a>
       
   255 </noscript>
       
   256 
       
   257 
       
   258 </font></td>
       
   259 </tr>
       
   260 </table>
       
   261 <a name="skip-navbar_top"></a>
       
   262 <!-- ========= end of top navbar ========= -->
       
   263     <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>
       
   264  </body>
       
   265 
       
   266 </html>
       
   267 
       
   268