|
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">  <a href="overview-summary.html"><font class="navbarfont1"><b>overview</b></font> </a></td> |
|
38 |
|
39 <td bgcolor="#ffffff" class="navbarcell1"> <a href="deprecated-list.html"><font class="navbarfont1"><b>deprecated</b></font></a> </td> |
|
40 |
|
41 <td bgcolor="#eeeeff" class="navbarcell1"> <a href="properties-table.html"><font class="navbarfont1"><b>properties-table</b></font></a> </td> |
|
42 <td bgcolor="#eeeeff" class="navbarcell1"> <a href="index-1.html"><font class="navbarfont1"><b>index</b></font></a> </td> |
|
43 <td bgcolor="#eeeeff" class="navbarcell1"> <a href="help.html"><font class="navbarfont1"><b>help</b></font></a> </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  prev  |
|
56  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>   |
|
59  <a href="overview-summary.html" target="_top"><b>no frames</b></a>   |
|
60 |
|
61  <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'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-brag-to-diamonds" alt="" coords="173,5,336,53"> |
|
153 <area shape="rect" id="node2" href="target-sf-run-analysis.html" title="sf-run-analysis" alt="" coords="5,5,125,53"> |
|
154 </map> |
|
155 </p> |
|
156 <hr/> |
|
157 |
|
158 |
|
159 <h3>Source code</h3> |
|
160 <pre> |
|
161 <target name="sf-brag-to-diamonds"> |
|
162 <!-- Merge all our bits of XML together --> |
|
163 <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml"> |
|
164 <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/> |
|
165 <arg value="--xsl=brag.xsl"/> |
|
166 <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/> |
|
167 <arg value="${build.log.dir}/summary/*?_BRAG.xml"/> |
|
168 </exec> |
|
169 <!-- Run XSL transform to create file to send to diamonds --> |
|
170 <java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true"> |
|
171 <arg value="-IN"/> |
|
172 <arg value="${build.log.dir}/summary/_BRAG.xml"/> |
|
173 <arg value="-XSL"/> |
|
174 <arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/> |
|
175 <arg value="-OUT"/> |
|
176 <arg value="${temp.build.dir}/bragForDiamonds.xml"/> |
|
177 </java> |
|
178 <if> |
|
179 <istrue value="${sf.spec.publish.enable}"/> |
|
180 <then> |
|
181 <!-- Try to obtain the diamonds ID for this build --> |
|
182 <if> |
|
183 <not><isset property="diamonds.build.id"/></not> |
|
184 <then> |
|
185 <property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently --> |
|
186 </then> |
|
187 </if> |
|
188 <if> |
|
189 <isset property="diamonds.build.id"/> |
|
190 <then> |
|
191 <!-- Send the data to the server --> |
|
192 <exec executable="python"> |
|
193 <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
194 <arg value="-s"/> |
|
195 <arg value="${diamonds.host}"/> |
|
196 <arg value="-u"/> |
|
197 <arg value="${diamonds.build.id}"/> |
|
198 <arg value="-f"/> |
|
199 <arg value="${temp.build.dir}/bragForDiamonds.xml"/> |
|
200 </exec> |
|
201 </then> |
|
202 <else> |
|
203 <echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/> |
|
204 </else> |
|
205 </if> |
|
206 </then> |
|
207 </if> |
|
208 </target> |
|
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">  <a href="overview-summary.html"><font class="navbarfont1"><b>overview</b></font> </a></td> |
|
223 |
|
224 <td bgcolor="#ffffff" class="navbarcell1"> <a href="deprecated-list.html"><font class="navbarfont1"><b>deprecated</b></font></a> </td> |
|
225 |
|
226 <td bgcolor="#eeeeff" class="navbarcell1"> <a href="properties-table.html"><font class="navbarfont1"><b>properties-table</b></font></a> </td> |
|
227 <td bgcolor="#eeeeff" class="navbarcell1"> <a href="index-1.html"><font class="navbarfont1"><b>index</b></font></a> </td> |
|
228 <td bgcolor="#eeeeff" class="navbarcell1"> <a href="help.html"><font class="navbarfont1"><b>help</b></font></a> </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  prev  |
|
241  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>   |
|
244  <a href="overview-summary.html" target="_top"><b>no frames</b></a>   |
|
245 |
|
246  <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 |