blob: 5f6ae10c01b0f244498ea9c598a6c6d4f630b919 [file] [log] [blame]
jlanuti6f30d402007-04-18 19:54:42 +00001<html>
2<head>
3<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css">
4<title>Eclipse Web Tools Platform (WTP) Downloads - for Committers and
5Early Testers</title>
6</head>
7<body>
8
9<!-- heading start -->
10<?php
11
12// tiny banner to remind when looking at "local" machine results
13$serverName = $_SERVER["SERVER_NAME"];
14
15if (!stristr($serverName, "eclipse.org") && !stristr($serverName,"you.are.at.eclipsecon.org")) {
16 echo '<center><p>Reminder: this is <font color="#FF0000">', $serverName,'</font> See also <a href="http://download.eclipse.org/webtools/downloads" target="_top">Live public eclipse site</a>.</center><hr />';
17}
18
19if (function_exists("date_default_timezone_set")) {
20 date_default_timezone_set("UTC");
21 //echo "<p>default timezone: ";
22 //echo date_default_timezone_get();
23 //echo "</p>";
24}
25
26?>
27
28
29<?php
30//ini_set("display_errors", "true");
31//error_reporting (E_ALL);
32?>
33
34<?php
35$QString = $_SERVER['QUERY_STRING'];
36$C = strcmp($QString, "test");
37?>
38
39
40<table border=0 cellpadding=0 width="100%">
41<tr>
42<td width="35%"><font class=indextop> Web Tools Platform<br>
43committer downloads</font><br>
44<font class=indexsub>Latest early trial downloads from the Web Tools Platform project</font></td>
45<td width="35%" align="right"><a href="http://www.eclipse.org/webtools/main.html"><img border="0"src="wtplogonarrow.jpg" height="95" width="207"></a></td>
46</tr>
47</table>
48
49<!-- heading end -->
50
51
52<hr />
53<table border=0 cellpadding=2 width="70%" align="center">
54 <tr>
55 <td>
56 <p>This is the starting page for where you can find the latest <a
57 href="http://wiki.eclipse.org/index.php/WTP_Build_Types">continuous build</a> produced by the <a
58 href="http://www.eclipse.org/webtools/main.html">Eclipse Web Tools
59 Platform (WTP) Project</a>. Please note that each build page details
60 the pre-reqs for that particular build.</p>
61
62 <p>If you got here to this continuous-build site by accident or casual
63 browsing, please be aware that <a
64 href="http://download.eclipse.org/webtools/downloads/" target="_top">
65 declared builds</a> are available!</p>
66 </td>
67 </tr>
68</table>
69
70<?php
71$contents = substr(file_get_contents('dlconfig.txt'),0,-1);
72$contents = str_replace("\n", "", $contents);
73
74#split the content file by & and fill the arrays
75$elements = explode("&",$contents);
76$t = 0;
77$p = 0;
78for ($c = 0; $c < count($elements); $c++) {
79 $tString = "dropType";
80 $pString = "dropPrefix";
81 if (strstr($elements[$c],$tString)) {
82 $temp = preg_split("/=/",$elements[$c]);
83 $dropType[$t] = trim($temp[1]);
84 $t++;
85 }
86 if (strstr($elements[$c],$pString)) {
87 $temp = preg_split("/=/",$elements[$c]);
88 $dropPrefix[$p] = trim($temp[1]);
89 $p++;
90 }
91}
92
93// debug
94// echo "Debug: droptype count: ", count($dropType), "<br />";
95
96for ($i = 0; $i < count($dropType); $i++) {
97 $dt = $dropType[$i];
98 $dt = trim($dt);
99 $typeToPrefix[$dt] = $dropPrefix[$i];
100
101 // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
102 // echo "Debug dropType: ", $dropType[$i], "<br />";
103
104}
105
106$buildBranches = array();
david_williamsc0ea7e82007-06-30 07:24:36 +0000107$buildBranches[0]="R3.0";
108$buildBranches[1]="R2.0";
109$buildBranches[2]="R1.5";
110$buildBranches[3]="R1.0";
111$buildBranches[4]="R0.7";
jlanuti6f30d402007-04-18 19:54:42 +0000112include 'report.php';
113include 'report2.php';
114
115$latestTimeStamp=array();
116$latestFile = array();
117
118echo "<table border=0 cellpadding=2 width=\"100%\"><tr>";
119echo "<td align=\"center\" bgcolor=\"#0080C0\"><b><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">";
120echo "Latest Downloads (In progress, towards a declared build)";
121echo "</td></font></b>";
122echo "</tr></table>";
123
124
125
126foreach ($buildBranches as $buildBranch ) {
127
128 $aBranchDirectoryName = "drops/".$buildBranch;
129 if (file_exists($aBranchDirectoryName) && is_dir($aBranchDirectoryName)) {
130 $aDirectory = dir($aBranchDirectoryName);
131 $latestTimeStamp[$buildBranch] = array();
132 $latestFile[$buildBranch] = array();
133
134
135 while (false !== ($anEntry = $aDirectory->read())) {
136
137 // Short cut because we know aDirectory only contains other directories.
138 if ($anEntry != "." && $anEntry!="..") {
139 // echo "Debug anEntry: $anEntry<br />" ;
140 $aDropDirectoryName = "drops/".$buildBranch."/".$anEntry;
141
142
143 if (is_dir($aDropDirectoryName) && is_Readable($aDropDirectoryName)) {
144 $aDropDirectory = dir($aDropDirectoryName);
145 //echo "Debug aDropDirectory: $aDropDirectory->path <br />" ;
146
147 $fileCount = 0;
148 while ($aDropEntry = $aDropDirectory->read()) {
149 // echo "Debug aDropEntry: $aDropEntry<br />" ;
150 if ( (stristr($aDropEntry, ".tar.gz")) || (stristr($aDropEntry, ".zip")) ) {
151 // Count the dropfile entry in the directory (so we won't display links, if not all there
152 $fileCount = $fileCount + 1;
153 }
154 }
155
156 $aDropDirectory->close();
157
158 }
159 // Read the count file
160 $countFile = "drops/".$buildBranch."/".$anEntry."/files.count";
161 $indexFile = "drops/".$buildBranch."/".$anEntry."/index.html";
162
163
164 if (!file_exists($indexFile)) {
165 $indexFile = "drops/".$buildBranch."/".$anEntry."/index.php";
166 }
167
168
169 if (file_exists($countFile) && file_exists($indexFile)) {
170 $anArray = file($countFile);
171 // debug
172 //echo "Number according to files.count: ", $anArray[0];
173 //echo " actual counted files: ", $fileCount;
174
175 // If a match - process the directoryVV -- we simply look that there's more
176 // zip's than we expect, since it frequently breaks where the count is slighly
177 // off, such as when we add, after the fact, an all-in-one zip.
178 if ($anArray[0] <= $fileCount) {
179 // debug
180 //echo "yes, counted equaled expected count<br>";
181
182 $entryParts = explode("-", $anEntry);
183 if (count($entryParts) == 3) {
184 // debug
185 //echo "yes, counted parts was 3<br>";
186 $buildTypePart = $entryParts[0];
187 $buckets[$buildBranch][$buildTypePart][] = $anEntry;
188
189 $timePart = $entryParts[2];
190 $year = substr($timePart, 0, 4);
191 $month = substr($timePart, 4, 2);
192 $day = substr($timePart, 6, 2);
193 $hour = substr($timePart,8,2);
194 $minute = substr($timePart,10,2);
195
196 $newTimePart = "$year-$month-$day $hour:$minute UTC";
197
198 $timeStamp = strtotime($newTimePart);
199
200 $timeStamps[$anEntry] = gmdate("D, j M Y -- H:i \(\U\T\C\)", $timeStamp);
201
202 // debug
203 // echo "<br />buildBranch: $buildBranch <br />";
204 // echo "<br />parts[0]: -$buildTypePart- <br />";
205 // echo "latestTimeStamp[buildBranch]:";
206 // echo $latestTimeStamp[$buildBranch];
207 // echo "latestTimeStamp:";
208 // echo $latestTimeStamp;
209
210 if ((sizeof($latestTimeStamp[$buildBranch]) > 0) &&
211 (isset($latestTimeStamp[$buildBranch][$buildTypePart])))
212 {
213 if ($timeStamp > $latestTimeStamp[$buildBranch][$buildTypePart])
214 {
215 $latestTimeStamp[$buildBranch][$buildTypePart] = $timeStamp;
216 $latestFile[$buildBranch][$buildTypePart] = $anEntry;
217 }
218 }
219 else
220 {
221 $latestTimeStamp[$buildBranch][$buildTypePart] = $timeStamp;
222 $latestFile[$buildBranch][$buildTypePart] = $anEntry;
223
224 }
225 }
226
227 }
228 }
229
230 }
231 }
232
233 $aDirectory->close();
234 }}
235
236?>
237
238
239<table width="70%" align="center" cellpadding=2>
240<tr>
241<td width="25%"><b>Build Type</b></td>
242<td width="25%"><b>Build Name</b></td>
243<td width="15%"><b>Stream</b></td>
244<td width="40%"><b>Build Date</b></td>
245</tr>
246
247
248
249<?php
250foreach($dropType as $value) {
251 $prefix=$typeToPrefix[$value];
252
253 foreach($buildBranches as $bValue) {
254
255 if (array_key_exists($prefix, $latestFile[$bValue])) {
256 $fileName = $latestFile[$bValue][$prefix];
257 echo "<tr>";
258 echo "<td width=\"25%\">$value</td>";
259
260
261 $fileNameParts = explode("-", $fileName);
262
263 if (sizeof($fileNameParts) > 1) {
264 // Uncomment the line below if we need click through licenses.
265 // echo "<td><a href=license.php?license=drops/$bValue/$fileName>$parts[1]</a></td>";
266
267 // Comment the line below if we need click through licenses.
268 echo "<td width=\"25%\"><a href=\"drops/$bValue/$fileName/\">$fileNameParts[1]</a></td>";
269 echo "<td width=\"15%\">$bValue</td>";
270 echo "<td width=\"40%\">$timeStamps[$fileName]</td>";
271 echo "</tr>";
272 }
273 }
274 }
275}
276?>
277
278<table border="0" cellpadding="2" width="100%">
279<tr>
280<td bgcolor="#0080C0">
281&nbsp;
282</td>
283</tr></table>
284
285
286</table>
287
288<table border="0" cellpadding="2" width="100%">
289 <tr>
david_williamse6ccb5c2007-06-17 12:51:45 +0000290 <td align="center" bgcolor="#999999"><font color="#FFFFFF" face="Arial,Helvetica"><b>Recent History</b></font></td>
jlanuti6f30d402007-04-18 19:54:42 +0000291 </tr>
292</table>
293
294<?php
295foreach($dropType as $value) {
296 $prefix=$typeToPrefix[$value];
297
298
299 echo "
300 <table width=\"100%\" cellpadding=2>
301 <tr bgcolor=\"#999999\">
302 <td align=left><b><a name=\"$value\"><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">";
303 echo "$value";
304 echo "</font></a></b></td>";
305 echo "</tr>";
306
307 echo "<tr>
308 <td align=left>
309 <table width=\"100%\" cellpadding=2>
310 <tr>
311 <td width=\"13%\"><b>Build Name</b></td>
312 <td width=\"8%\"><b>Stream</b></td>
313 <td width=\"20%\"><b>Build Date</b></td>
314 <td></td>
315 </tr>";
316
317 foreach($buildBranches as $bValue) {
318 if (array_key_exists($bValue, $buckets) && $buckets[$bValue] != NULL
319 && array_key_exists($prefix, $buckets[$bValue])) {
320 echo "<tr><td colspan=\"11\"/><hr/></tr>";
321 $aBucket = $buckets[$bValue][$prefix];
322 if (isset($aBucket)) {
323 rsort($aBucket);
324
325 $i = 0;
326 $ts = array();
327 $ts2iv = array();
328 foreach($aBucket as $iv) {
329 $ivParts = explode("-", $iv);
330 $ts[$i] = $ivParts[2];
331 $ts2iv[$ts[$i]] = $iv;
332 $i++;
333 }
334
335 rsort($ts);
336 $i = 0;
337 $aBucket = array();
338 foreach($ts as $tsvalue) {
339 $aBucket[$i] = $ts2iv[$tsvalue];
340 $i++;
341 }
342
343 foreach($aBucket as $innerValue) {
344
345 $innerValueParts = explode("-", $innerValue);
346 echo "<tr>";
347
348 // Uncomment the line below if we need click through licenses.
349 // echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$innerValueParts[1]</a></td>";
350
351 // Comment the line below if we need click through licenses.
352 echo "<td width=\"13%\"><a href=\"drops/$bValue/$innerValue/\">$innerValueParts[1]</a></td>";
353 echo "<td width=\"8%\">$bValue</td>";
354 echo "<td width=\"20%\">$timeStamps[$innerValue]</td>";
355 echo "<td></td>";
356
357 // if compilelogsSummary.xml exists, assume the "new way" (summary in xml file).
358 // else, assume old way
359 //echo "drops/$bValue/$innerValue/compilelogsSummary.xml";
360 if (file_exists("drops/$bValue/$innerValue/compilelogsSummary.xml"))
361 {
362 $filename = "drops/$bValue/$innerValue/compilelogsSummary.xml";
363 $prefix = "code_";
364 $compileSummary = simplexml_load_file($filename);
365 foreach ($compileSummary->summaryItem as $summaryItem) {
366 $name = $summaryItem->name;
367 $value = $summaryItem->value;
368 $code= "\$" . $prefix . $name . " = " . $value . ";";
369 //echo "<br />code: " . $code;
370 eval($code);
371 }
372 //echo "drops/$bValue/$innerValue/testcompilelogsSummary.xml";
373 $filename = "drops/$bValue/$innerValue/testcompilelogsSummary.xml";
374 $prefix = "test_";
375 $compileSummary = simplexml_load_file($filename);
376 foreach ($compileSummary->summaryItem as $summaryItem) {
377 $name = $summaryItem->name;
378 $value = $summaryItem->value;
379 $code= "\$" . $prefix . $name . " = " . $value . ";";
380 //echo "<br />code: " . $code;
381 eval($code);
382 }
383
384 if (file_exists("drops/$bValue/$innerValue/unitTestsSummary.xml")) {
385 $filename = "drops/$bValue/$innerValue/unitTestsSummary.xml";
386 $prefix = "unittest_";
387 $unitTestsSummary = simplexml_load_file($filename);
388 foreach ($unitTestsSummary->summaryItem as $summaryItem) {
389 $name = $summaryItem->name;
390 $value = $summaryItem->value;
391 $code= "\$" . $prefix . $name . " = " . $value . ";";
392 // echo "<br />code: " . $code;
393 eval($code);
394 }
395 }
396 else {
397 unset($unittest_grandTotalErrors, $unittest_grandTotalTests);
398 }
399
400 $totalCommpileErrors = $code_totalErrors + $test_totalErrors;
401 $totalCompileOtherWarnings = $code_totalWarnings;
402 $totalBundles = $code_totalBundles + $test_totalBundles;
403 $totalForbidden = $code_totalforbiddenAccessWarningCount + $test_totalforbiddenAccessWarningCount;
404 $totalDiscouraged = $code_totaldiscouragedAccessWarningCount + $test_totaldiscouragedAccessWarningCount;
405
406 echo "<td width=\"6%\">($totalBundles)</td>";
407 echo "<td width=\"6%\"><img src=\"compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>";
408 echo "<td width=\"6%\"><img src=\"compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>";
409 echo "<td width=\"6%\"><img src=\"access_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalForbidden</font></td>";
410 echo "<td width=\"6%\"><img src=\"access_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalDiscouraged</font></td>";
411
412 if (isset($unittest_grandTotalErrors)) {
413 echo "<td width=\"6%\"><img src=\"junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$unittest_grandTotalErrors</font></td>";
414 echo "<td width=\"6%\">($unittest_grandTotalTests)</td>";
415 }
416 else {
417 echo "<td width=\"6%\"><img src=\"pending.gif\" width=\"16\" height=\"16\"/></td>";
418 echo "<td width=\"6%\"><img src=\"pending.gif\" width=\"16\" height=\"16\"/></td>";
419 }
420 echo "</tr>";
421 }
422 // if compileResults.php exists, assume the "new way" (testResults and compileResult seperated).
423 // else, assume old way
424 else if (file_exists("drops/$bValue/$innerValue/compileResults.php"))
425 {
426 $testResults = parse2_testResults("drops/$bValue/$innerValue/testResults.php");
427 list ($junitFailures) = $testResults;
428
429 $compileResults = parse2_compileResults("drops/$bValue/$innerValue/compileResults.php");
430 list ($compileErrors, $compileAccessWarnings, $compileOtherWarnings) = $compileResults;
431 $testCompileResults = parse2_compileResults("drops/$bValue/$innerValue/testCompileResults.php");
432 list ($testCompileErrors, $testCompileAccessWarnings, $testCompileOtherWarnings) = $testCompileResults;
433
434 $totalCommpileErrors = $compileErrors + $testCompileErrors;
435 // we'll just use code for warnning summaries, for now
436 $totalAccessWarnings = $compileAccessWarnings;
437 $totalCompileOtherWarnings = $compileOtherWarnings;
438
439 echo "<td width=\"6%\">&nbsp;</td>";
440 echo "<td width=\"6%\"><img src=\"compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>";
441 echo "<td width=\"6%\"><img src=\"compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>";
442 if ($junitFailures < 0) {
443 echo "<td width=\"6%\"><img src=\"pending.gif\" width=\"16\" height=\"16\"/><font color=red>&nbsp;</font></td>";
444 }
445 else {
446 echo "<td width=\"6%\"><img src=\"junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$junitFailures</font></td>";
447 }
448
449 echo "</tr>";
450
451 }
452 else {
453 $testResults = parse_testResult("drops/$bValue/$innerValue/testResults.php");
454 list ($compileErrors, $compileWarnings, $junitFailures) = $testResults;
455
456 echo "<td width=\"6%\">&nbsp;</td>";
457 echo "<td width=\"6%\"><img src=\"compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$compileErrors</font></td>";
458 echo "<td width=\"6%\"><img src=\"compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$compileWarnings</font></td>";
459 echo "<td width=\"6%\"><img src=\"junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$junitFailures</font></td>";
460
461 echo "</tr>";
462 }
463 }
464 }}}
465 echo "</table></table>";
466}
467?>
468
469<table border="0" cellpadding="2" width="100%">
470 <tr>
471 <td bgcolor="#999999">&nbsp;</td>
472 </tr>
473</table>
474
475
476<table border="0" width="100%" cellpadding="2">
477 <tbody>
478 <tr>
479 <td valign="top" width="40%">
480
481
482 <table border="0" cellpadding="2">
483 <tbody>
484 <tr>
485 <td width="100%" bgcolor="#0080c0" valign="top"><b><font
486 face="Arial,Helvetica"><font color="#ffffff">Download Related
487 Links</font> </font></b></td>
488 </tr>
489 <tr>
490 <td valign="top">
491
492
493 <p><a
494 href="http://archive.eclipse.org/webtools/downloads/index.php"
495 target="_top">Archived Builds</a> are previously significant
496 builds that are no longer required, but which we keep on a
497 non-mirrored site, for historical and academic use.</p>
498
499 <p><a href="http://download.eclipse.org/webtools/downloads/"
500 target="_top">Declared builds</a> are available which are for
501 end-users and adopters.</p>
502 </td>
503 </tr>
504 </tbody>
505 </table>
506
507 </td>
508
509 <td />
510
511
512 <td width="45%" valign="top">
513 <table border="0" cellpadding="2">
514 <tbody>
515 <tr>
516 <td width="100%" colspan="4" bgcolor="#0080c0" valign="top"><b><font
517 face="Arial,Helvetica"><font color="#ffffff">Metrics Legend</font>
518 </font></b></td>
519 </tr>
520
521 <tr>
522 <td valign="top"><img src="compile_err.gif" width="16" height="16" /></td>
523 <td valign="top" width="50%">compilation errors.</td>
524 <td valign="top"><img src="compile_warn.gif" width="16" height="16" /></td>
525 <td valign="top" width="50%">compilation warnings.</td>
526 </tr>
527 <tr>
528 <td valign="top"><img src="access_err.gif" width="16" height="16" /></td>
529 <td valign="top" width="50%">Access Rule Violations</td>
530 <td valign="top"><img src="access_warn.gif" width="16" height="16" /></td>
531 <td valign="top" width="50%">Access Rule Warnings</td>
532 </tr>
533 <tr>
534 <td valign="top"><img src="junit_err.gif" width="16" height="16" /></td>
535 <td valign="top" width="50%">junit failures.</td>
536 <td valign="top"><img src="pending1.gif" width="16" height="16" /></td>
537 <td valign="top" width="50%">Pending results</td>
538 </tr>
539 <tr>
540 <td valign="top"><img src="api_err.gif" width="16" height="16" /></td>
541 <td valign="top" width="50%">API violations.</td>
542
543 <td valign="top"><img src="api_junit.gif" width="16" height="16" /></td>
544 <td valign="top" width="50%">APIs without junit testcases.</td>
545 </tr>
546 <tr>
547 <td valign="top"><img src="api_removed.gif" width="16" height="16" /></td>
548 <td valign="top" width="50%">removed APIs.</td>
549 </tr>
550 <tr>
551 <td valign="top"><b>(</b>nnn<b>)</b></td>
552 <td valign="top">Number of bundles, jars, and wars, or number of
553 unit tests.</td>
554
555 <td valign="top"><b>NA</b></td>
556 <td valign="top"><b>N</b>ot <b>A</b>vailable</td>
557 </tr>
558 </tbody>
559 </table>
560 </td>
561 </tr>
562 </tbody>
563</table>
564
565<!-- footer -->
566<center>
567<hr />
568<p>All downloads are provided under the terms and conditions of the <a
569 href="http://www.eclipse.org/legal/notice.html">Eclipse.org Software
570User Agreement</a> unless otherwise specified.</p>
571
572<p>If you have problems downloading the drops, contact the <font
573 size="-1" face="arial,helvetica,geneva"><a
574 href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
575</center>
576<!-- end footer -->
577
578</body>
579</html>
580<?php
581if (isset($old_error_handler) && sizeof($old_error_handler)) {
582 set_error_handler($old_error_handler);
583}
584?>