blob: ae1b293e09cb7498d417db157a3d30a80d5993a8 [file] [log] [blame]
david_williams88cbf012009-01-12 21:53:05 +00001<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4
5<title>WTP Incubator Downloads</title>
6
7
8<?php
9
10$buildBranch="@buildBranch@";
11$build="@build@";
12$type="@type@";
13$builddate="@date@";
14
15$eclipseMirrorPrefixuri="@eclipse.mirror.prefixuri@";
16$eclipseFSpathPrefix="@eclipse.fspath.prefix@";
17
18$eclipsefilelinux="@eclipsefilelinux@";
19$eclipsefilewindows="@eclipsefilewindows@";
20$eclipsefilemacosx="@eclipsefilemacos@";
21
22$eclipseURL="@eclipseURL@";
23$eclipseFile="@eclipseFile@";
24$eclipseBuildURL="@eclipseBuildURL@";
25$eclipseBuildHome="@eclipseBuildHome@";
26$testURL="@testURL@";
27$testFile="@testFile@";
28
29$wstURL="@wstURL@";
30$wstFile="@wstFile@";
31$wstMirrorPrefixuri="@wst.mirror.prefixuri@";
32$wstBuildHome="@wstBuildHome@";
33
34
35$gefURL="@gefURL@";
36$gefFile="@gefFile@";
37$gefMirrorPrefixuri="@gef.mirror.prefixuri@";
38$gefBuildHome="@gefBuildHome@";
39
40$emfURL="@emfURL@";
41$emfFile="@emfFile@";
42$emfMirrorPrefixuri="@emf.mirror.prefixuri@";
43$emfBuildHome="@emfBuildHome@";
44
45$dtpURL="@dtpURL@";
46$dtpFile="@dtpFile@";
47$dtpMirrorPrefixuri="@dtp.mirror.prefixuri@";
48$dtpBuildHome="@dtpBuildHome@";
49
50
51$eclipserelengFile="@eclipserelengFile@";
52$eclipserelengURL="@eclipserelengURL@";
53$orbitthirdpartyzipFile="@orbitthirdpartyzipFile@";
54$orbitthirdpartyzipURL="@orbitthirdpartyzipURL@";
55$orbitthirdpartyzipBuildHome="@orbitthirdpartyzipBuildHome@";
56$orbitthirdpartyzipMirrorPrefixuri="@orbitthirdpartyzip.mirror.prefixuri@";
57
58
59
60
61include("miscUtil.php");
62
63
64
65ini_set("display_errors", "true");
66error_reporting (E_ALL);
67
68
69$debugScript = false;
70$debugFunctions = false;
71
72$defaultMirrorScript="";
73$defaultWTPMirrorPrefix="./";
74
75$eclipseMirrorScript="http://www.eclipse.org/downloads/download.php?file=";
76
77// TODO: improve so this hard coding isn't required.
78// This depends on the declare script changing webtools/committers to webtools/downloads
79// And, the logic is such that if it is not mirrored, this URI is not used at all, just
80// a relative reference only
81$eclipseWTPMirrorPrefix="/webtools/committers/drops/$buildBranch/$build/";
82
83
84$mirrorScript=$defaultMirrorScript;
85$downloadprefix=$defaultWTPMirrorPrefix;
86
87
88$keytestMirrorString=$eclipseMirrorScript . "$eclipseWTPMirrorPrefix/@zipprefix@-sdk-$build.zip";
89if (isMirrored($keytestMirrorString) ) {
90 $mirrorScript=$eclipseMirrorScript;
91 $downloadprefix="${mirrorScript}${eclipseWTPMirrorPrefix}";
92}
93
94if ($debugScript) {
95 echo "inferred platform: " . getPlatform();
96}
97
98
99// our summary results handling requires php 5 (for simple xml file loading)
100// so, if not php 5, just don't display any summary results
101// This was found to be required, since some mirror our whole site (e.g. IBM)
102// and not all mirrors use PHP 5
103$displayTestSummary=false;
104if (phpversion() >= 5) {
105
106 $displayTestSummary=true;
107 // expecting grandTotalErrors and grandTotalTests
108 $filename = "unitTestsSummary.xml";
109 if (file_exists($filename)) {
110 $prefix = "unitTests_";
111 $unitTestsSummary = simplexml_load_file($filename);
112 foreach ($unitTestsSummary->summaryItem as $summaryItem) {
113 $name = $summaryItem->name;
114 $value = $summaryItem->value;
115 $code= "\$" . $prefix . $name . " = " . $value . ";";
116 //echo "<br />code: " . $code;
117 eval($code);
118 }
119 }
120
121 $filename = "compilelogsSummary.xml";
122 $prefix = "code_";
123 $compileSummary = simplexml_load_file($filename);
124 foreach ($compileSummary->summaryItem as $summaryItem) {
125 $name = $summaryItem->name;
126 $value = $summaryItem->value;
127 $code= "\$" . $prefix . $name . " = " . $value . ";";
128 //echo "<br />code: " . $code;
129 eval($code);
130 }
131
132 $filename = "testcompilelogsSummary.xml";
133 $prefix = "test_";
134 $compileSummary = simplexml_load_file($filename);
135 foreach ($compileSummary->summaryItem as $summaryItem) {
136 $name = $summaryItem->name;
137 $value = $summaryItem->value;
138 $code= "\$" . $prefix . $name . " = " . $value . ";";
139 //echo "<br />code: " . $code;
140 eval($code);
141 }
142}
143
144
145?>
146
147
148</head>
149
150<body>
151
152
153<?php
154
155// tiny banner to remind when looking at "local" machine results
156$serverName = $_SERVER["SERVER_NAME"];
157
158if (!stristr($serverName, "eclipse.org") && !stristr($serverName,"you.are.at.eclipsecon.org")) {
159 echo '<center>
160 <p>
161 Reminder: this is <font color="#FF0000">' .
162 $serverName .
163 '</font>
164 See also
165 <a href="http://download.eclipse.org/webtools/downloads" target="_top">the live public Eclipse site</a>.
166 </p>
167 <hr />
168 </center>';
169
170}
171?>
172<table BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="100%">
173 <tr>
174 <td ALIGN=left><font face="'Bitstream Vera',Helvetica,Arial" size="+2"><b><?php echo "$type";?>
175 Build: <?php echo "$build";?></b></font></td>
176 <td align="right" rowspan="3"><a
177 href="http://www.eclipse.org/projects/what-is-incubation.php"><img
178 src="http://www.eclipse.org/images/egg-incubation.png" alt="Incubation"
179 align="middle" border="0"></a></td>
180
181 <tr valign="top">
182 <td><font size="-1"><?php echo "$builddate";?></font></td>
183 </tr>
184 <tr valign="top">
185 <td>
186 <p>The Eclipse Web Tools Platform (WTP) Incubator Project provides
187 tools for development that are just getting started, or are
188 experimental in some fashion.</p>
189 </td>
190 </tr>
191</table>
192
193<!-- *********** Required Prerequisites ************** -->
194<table border=0 cellspacing=2 cellpadding=2 width="100%">
195 <tr>
196 <td align="left" valign="top" bgcolor="#0080C0"><font
197 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Required
198 Prerequisites and Handy Extras</font></td>
199 </tr>
200 <tr>
201 <td>
david_williams272f0cc2009-01-14 04:06:51 +0000202 <p>These are the prerequisites to install and run these packages.
203 Also listed are some frequently needed links for
204 committer-required packages when creating new development
205 environments, or targets to run against.</p>
david_williams88cbf012009-01-12 21:53:05 +0000206 <p>Note that WTP requires Java 5 or higher (and, for some things,
207 actually requires a JDK rather than only a JRE) even though many other
208 <a href="http://www.eclipse.org/downloads/">Eclipse Projects</a> can
209 run with <a href="http://www.eclipse.org/downloads/moreinfo/jre.php">other
210 JRE levels</a>.</p><p></p>
211 </td>
212 </tr>
213 <tr>
214 <td>
215 <table border=0 cellspacing=1 cellpadding=1 width="90%" align="center">
216 <tr valign="top">
217 <td width="10%"></td>
218 <td width="40%">Eclipse Platform (Platform, JDT)</td>
219 <?php
220 //customize page depending on user's browser/platform, if we can detect it
221 $usersPlatform = getPlatform();
222 // assume windows by default, since likely most frequent, even for cases where
223 // platform is "unknown". I've noticed Opera reports 'unknown' :(
224 $recommendedFile=$eclipsefilewindows;
225 if (strcmp($usersPlatform,"linux")== 0) {
226 $recommendedFile=$eclipsefilelinux;
227 } else if (strcmp($usersPlatform,"mac") == 0) {
228 $recommendedFile=$eclipsefilemacosx;
229 }
230 ?>
231 <td align="right"><?php
232 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipseURL, $recommendedFile, $eclipseFSpathPrefix);
233 echo " or <a href=\"" . $eclipseBuildURL . "\">appropriate platform</a>";
234 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
235 ?>
236
237 </tr>
238
239 <tr valign="top">
240 <td width="10%"></td>
david_williams88cbf012009-01-12 21:53:05 +0000241 <td>Eclipse Modeling Framework (EMF, XSD InfoSet)</td>
242 <td align="right"><?php
243 echo getPrereqReferenceOrName($eclipseMirrorScript, $emfMirrorPrefixuri, $emfURL, $emfFile, $eclipseFSpathPrefix);
244 echo " or <a href=\"" . $emfBuildHome . "\">equivalent</a></td>";
245 ?>
david_williams88cbf012009-01-12 21:53:05 +0000246 </tr>
247
248 <tr valign="top">
249 <td width="10%"></td>
250 <td>Graphical Editing Framework (GEF)</td>
251 <td align="right"><?php
252 echo getPrereqReferenceOrName($eclipseMirrorScript, $gefMirrorPrefixuri, $gefURL, $gefFile, $eclipseFSpathPrefix);
253 echo " or <a href=\"" . $gefBuildHome . "\">equivalent</a></td>";
254 ?>
255
256 </tr>
257
258 <tr valign="middle">
259 <td width="10%"></td>
260 <td colspan="2">
261 <hr />
262 </td>
263 </tr>
264
david_williams46c431c2009-01-14 08:26:27 +0000265
266 <tr valign="top">
267 <td width="10%"></td>
268 <td>Web Tools Platform portion</td>
269 <td align="right"><?php
270 // debug
271 // echo "debug: full path: " . $eclipseFSpathPrefix . "/" . $wstMirrorPrefixuri . "/" . $wstFile;
272
273 echo getPrereqReferenceOrName($eclipseMirrorScript, $@basicprereq@MirrorPrefixuri, $@basicprereq@URL, $@basicprereq@File, $eclipseFSpathPrefix);
274 echo " or <a href=\"" . $@basicprereq@BuildHome . "\">equivalent</a></td>";
275 ?>
276
277 </tr>
278 <tr valign="middle">
279 <td width="10%"></td>
280 <td colspan="2">
281 <hr />
282 </td>
283 </tr>
284
david_williams88cbf012009-01-12 21:53:05 +0000285 <tr valign="top">
286 <td width="10%"></td>
287 <td>Eclipse Test Framework (required only for Automated JUnit tests)</td>
288 <td align="right"><?php
289 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $testURL, $testFile, $eclipseFSpathPrefix);
290 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
291 ?>
292
293 </tr>
294
295 <tr valign="top">
296 <td width="10%"></td>
297 <td>Eclipse releng tool (required only for committers to more easily
298 "release" code to a build)</td>
299 <td align="right"><?php
300 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipserelengURL, $eclipserelengFile, $eclipseFSpathPrefix);
301 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
302 ?>
303
304 </tr>
305
306 <tr valign="top">
307 <td width="10%"></td>
308 <td>Third Party code from Orbit (currently much more than needed
309 for WTP, but some committers like having the whole heap in their
310 target)</td>
311 <td align="right"><?php
312 echo getPrereqReferenceOrName($eclipseMirrorScript, $orbitthirdpartyzipMirrorPrefixuri, $orbitthirdpartyzipURL, $orbitthirdpartyzipFile,$eclipseFSpathPrefix);
313 echo " or <a href=\"" . $orbitthirdpartyzipBuildHome . "\">equivalent</a></td>";
314 ?>
315
316 </tr>
317
318 </table>
319 </td>
320 </tr>
321</table>
322
323<!-- *********** WTP ************** -->
324<table border=0 cellspacing=2 cellpadding=2 width="100%">
325 <tr>
326 <td align=left valign=top colspan="5" bgcolor="#0080C0"><font
327 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF"> Web Tools
328 Incubating Components</font></td>
329 </tr>
330
331 <tr>
332 <td align="left" valign="top" colspan="5">
333 <p>@longdescription@</p>
334 </td>
335 </tr>
336 <tr>
337 <td>
338 <table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
339
340
341 <tr>
342 <td align="left" valign="top" width="10%"><b>Minimal</b></td>
343 <td align="left" valign="top">
344 <p>Executable code only.</p>
345 </td>
346 <?php
347 $zipfilename="@zipprefix@-${build}";
348 $filename=$zipfilename.".zip";
349 $zipfilesize=fileSizeForDisplay($filename);
350 $fileShortDescription="@shortname@";
351 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
352 ?>
353 </tr>
354
355 <tr>
356 <td align="left" valign="top" width="10%"><b>SDK</b></td>
357 <td align="left" valign="top">
358 <p>Executable code and source code.</p>
359 </td>
360 <?php
361 $zipfilename="@zipprefix@-sdk-${build}";
362 $filename=$zipfilename.".zip";
363 $zipfilesize=fileSizeForDisplay($filename);
364 $fileShortDescription="@shortname@ sdk";
365 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
366 ?>
367 </tr>
368 <tr>
369 <td align="left" valign="top" width="10%"><b>Tests</b></td>
370 <td align="left" valign="top">
371 <p>Unit tests.</p>
372 </td>
373 <?php
374 $zipfilename="@zipprefix@-tests-${build}";
375 $filename=$zipfilename.".zip";
376 $zipfilesize=fileSizeForDisplay($filename);
377 $fileShortDescription="@shortname@ tests";
378 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
379 ?>
380 </tr>
381 </table>
382 </td>
383
384
385 <tr>
386
387</table>
388
389
390
391
392
393
394
395<!-- *********** Build Status ************** -->
396<table border=0 cellspacing=2 cellpadding=2 width="100%">
397 <tr>
398 <td align=left valign=top bgcolor="#0080C0"><font
399 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Status, tests
400 and other interesting details</font></td>
401 </tr>
402 <tr>
403 <td>
404 <table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
405
406 <tr>
407 <td><a href="buildNotes.php">Build notes</a> <br />
408 <a href="directory.txt">map files</a> <br />
409 <?php
410
411 if ($displayTestSummary) {
412
413
414 if (isset($unitTests_grandTotalErrors)) {
415 $errorColor="green";
416 if ($unitTests_grandTotalErrors > 0) {
417 $errorColor="red";
418 }
419 echo "<a href=\"testResults.php\">Unit test results</a>&nbsp;";
420 echo "<img src=\"junit_err.gif\"/><font color=\"" . $errorColor . "\">" . $unitTests_grandTotalErrors . "</font>&nbsp;&nbsp;Total: " . $unitTests_grandTotalTests;
421 }
422 else {
423 echo "<br /><font color=\"orange\">Unit tests are pending</font>&nbsp;&nbsp;<img src=\"pending.gif\"/>";
424 }
425
426 echo "<br />";
427 echo "<a href=\"compileResults.php\">Compile logs: Code Bundles</a>";
428
429 echo "&nbsp;&nbsp;($code_totalBundles)&nbsp;&nbsp;";
430 echo "<img src=\"compile_err.gif\"/><font color=red>$code_totalErrors</font>&nbsp;";
431 echo "<img src=\"compile_warn.gif\"/><font color=orange>$code_totalWarnings</font>&nbsp;";
432 echo "<img src=\"access_err.gif\"/><font color=red>$code_totalforbiddenAccessWarningCount</font>&nbsp;";
433 echo "<img src=\"access_warn.gif\"/><font color=orange>$code_totaldiscouragedAccessWarningCount</font>&nbsp;";
434
435 echo "<br />";
436 echo "<a href=\"testCompileResults.php\">Compile logs: Test Bundles</a>";
437
438 echo "&nbsp;&nbsp;($test_totalBundles)&nbsp;&nbsp;";
439 echo "<img src=\"compile_err.gif\"/><font color=red>$test_totalErrors</font>&nbsp;";
440 echo "<img src=\"compile_warn.gif\"/><font color=orange>$test_totalWarnings</font>&nbsp;";
441 echo "<img src=\"access_err.gif\"/><font color=red>$test_totalforbiddenAccessWarningCount</font>&nbsp;";
442 echo "<img src=\"access_warn.gif\"/><font color=orange>$test_totaldiscouragedAccessWarningCount</font>&nbsp;";
443 }
444
445 ?> <br />
446
447 <?php
448 if (file_exists("versioningReportName.php")) {
449 include "versioningReportName.php";
450 $fname="${versionReportFilename}.html";
451 if (file_exists($fname)) {
452 echo "<br /> <a href='$fname'>Versioning Information</a>";
453 }
454}
455?> <?php
456echo "<br />";
457if (file_exists("./apiresults/api-progress.html"))
458{
459 echo "<br /> <a href=\"apiresults/api-progress.html\">API Progress Report</a>";
460}
461if (file_exists("./apiresults/api-info-summary.html"))
462{
463 echo "<br /> <a href=\"apiresults/api-info-summary.html\">APIs Defined by Each Component</a>";
464}
465if (file_exists("./apiresults/api-ref-compatibility.html"))
466{
467 echo "<br /> <a href=\"apiresults/api-ref-compatibility.html\">Adopter Breakage Report</a>";
468}
469if (file_exists("./apiresults/api-violation-summary.html"))
470{
471 echo "<br /> <a href=\"apiresults/api-violation-summary.html\">API Violations</a>";
472}
473if (file_exists("./apiresults/component-api-violation-all.html"))
474{
475 echo "<br /> <a href=\"apiresults/component-api-violation-all.html\">Non-API dependencies</a>";
476}
477if (file_exists("./apiresults/api-tc-summary.html"))
478{
479 echo "<br /> <a href=\"apiresults/api-tc-summary.html\">API Test Coverage</a>";
480}
481if (file_exists("./apiresults/api-javadoc-summary.html"))
482{
483 echo "<br /> <a href=\"apiresults/api-javadoc-summary.html\">API Javadoc Coverage</a>";
484}
485if (file_exists("./apiresults/api-tc-summary.html"))
486{
487 echo "<br /><br /> <a href=\"apiresults/full_test_coverage/api-tc-summary.html\">Test Coverage for All Classes and Methods</a>";
488}
489?> <?php
490if (file_exists("./perfresults/graph/performance.php"))
491{
492 echo "<br />";
493 echo "<br /> <a href=\"perfresults/graph/performance.php\">Performance Results</a>";
494 echo "<br />";
495}
496?></td>
497 </tr>
498
499
500 </table>
501 </td>
502 </tr>
503</table>
504
505
506
507<!-- footer -->
508<center>
509<hr>
510<p>All downloads are provided under the terms and conditions of the <a
511 href="http://www.eclipse.org/legal/notice.html">Eclipse.org Software
512User Agreement</a> unless otherwise specified.</p>
513
514<p>If you have problems downloading the drops, contact the <font
515 face="'Bitstream Vera',Helvetica,Arial" size="-1"><a
516 href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
517
518</center>
519<!-- end footer -->
520
521
522</body>
523</html>