blob: 91792b0766cbcc20c6e14ae853fbf598186e3d86 [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>
241 <td>Webtools Platform (at least WST)</td>
242 <td align="right"><?php
243 // debug
244 // echo "debug: full path: " . $eclipseFSpathPrefix . "/" . $wstMirrorPrefixuri . "/" . $wstFile;
245 echo getPrereqReferenceOrName($eclipseMirrorScript, $wstMirrorPrefixuri, $wstURL, $wstFile, $eclipseFSpathPrefix);
246 echo " or <a href=\"" . $wstBuildHome . "\">equivalent</a></td>";
247 ?>
248
249 </tr>
250
251 <tr valign="top">
252 <td width="10%"></td>
253 <td>Eclipse Modeling Framework (EMF, XSD InfoSet)</td>
254 <td align="right"><?php
255 echo getPrereqReferenceOrName($eclipseMirrorScript, $emfMirrorPrefixuri, $emfURL, $emfFile, $eclipseFSpathPrefix);
256 echo " or <a href=\"" . $emfBuildHome . "\">equivalent</a></td>";
257 ?>
258
259 </tr>
260
261 <tr valign="top">
262 <td width="10%"></td>
263 <td>Graphical Editing Framework (GEF)</td>
264 <td align="right"><?php
265 echo getPrereqReferenceOrName($eclipseMirrorScript, $gefMirrorPrefixuri, $gefURL, $gefFile, $eclipseFSpathPrefix);
266 echo " or <a href=\"" . $gefBuildHome . "\">equivalent</a></td>";
267 ?>
268
269 </tr>
270
271 <tr valign="middle">
272 <td width="10%"></td>
273 <td colspan="2">
274 <hr />
275 </td>
276 </tr>
277
278 <tr valign="top">
279 <td width="10%"></td>
280 <td>Eclipse Test Framework (required only for Automated JUnit tests)</td>
281 <td align="right"><?php
282 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $testURL, $testFile, $eclipseFSpathPrefix);
283 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
284 ?>
285
286 </tr>
287
288 <tr valign="top">
289 <td width="10%"></td>
290 <td>Eclipse releng tool (required only for committers to more easily
291 "release" code to a build)</td>
292 <td align="right"><?php
293 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipserelengURL, $eclipserelengFile, $eclipseFSpathPrefix);
294 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
295 ?>
296
297 </tr>
298
299 <tr valign="top">
300 <td width="10%"></td>
301 <td>Third Party code from Orbit (currently much more than needed
302 for WTP, but some committers like having the whole heap in their
303 target)</td>
304 <td align="right"><?php
305 echo getPrereqReferenceOrName($eclipseMirrorScript, $orbitthirdpartyzipMirrorPrefixuri, $orbitthirdpartyzipURL, $orbitthirdpartyzipFile,$eclipseFSpathPrefix);
306 echo " or <a href=\"" . $orbitthirdpartyzipBuildHome . "\">equivalent</a></td>";
307 ?>
308
309 </tr>
310
311 </table>
312 </td>
313 </tr>
314</table>
315
316<!-- *********** WTP ************** -->
317<table border=0 cellspacing=2 cellpadding=2 width="100%">
318 <tr>
319 <td align=left valign=top colspan="5" bgcolor="#0080C0"><font
320 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF"> Web Tools
321 Incubating Components</font></td>
322 </tr>
323
324 <tr>
325 <td align="left" valign="top" colspan="5">
326 <p>@longdescription@</p>
327 </td>
328 </tr>
329 <tr>
330 <td>
331 <table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
332
333
334 <tr>
335 <td align="left" valign="top" width="10%"><b>Minimal</b></td>
336 <td align="left" valign="top">
337 <p>Executable code only.</p>
338 </td>
339 <?php
340 $zipfilename="@zipprefix@-${build}";
341 $filename=$zipfilename.".zip";
342 $zipfilesize=fileSizeForDisplay($filename);
343 $fileShortDescription="@shortname@";
344 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
345 ?>
346 </tr>
347
348 <tr>
349 <td align="left" valign="top" width="10%"><b>SDK</b></td>
350 <td align="left" valign="top">
351 <p>Executable code and source code.</p>
352 </td>
353 <?php
354 $zipfilename="@zipprefix@-sdk-${build}";
355 $filename=$zipfilename.".zip";
356 $zipfilesize=fileSizeForDisplay($filename);
357 $fileShortDescription="@shortname@ sdk";
358 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
359 ?>
360 </tr>
361 <tr>
362 <td align="left" valign="top" width="10%"><b>Tests</b></td>
363 <td align="left" valign="top">
364 <p>Unit tests.</p>
365 </td>
366 <?php
367 $zipfilename="@zipprefix@-tests-${build}";
368 $filename=$zipfilename.".zip";
369 $zipfilesize=fileSizeForDisplay($filename);
370 $fileShortDescription="@shortname@ tests";
371 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
372 ?>
373 </tr>
374 </table>
375 </td>
376
377
378 <tr>
379
380</table>
381
382
383
384
385
386
387
388<!-- *********** Build Status ************** -->
389<table border=0 cellspacing=2 cellpadding=2 width="100%">
390 <tr>
391 <td align=left valign=top bgcolor="#0080C0"><font
392 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Status, tests
393 and other interesting details</font></td>
394 </tr>
395 <tr>
396 <td>
397 <table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
398
399 <tr>
400 <td><a href="buildNotes.php">Build notes</a> <br />
401 <a href="directory.txt">map files</a> <br />
402 <?php
403
404 if ($displayTestSummary) {
405
406
407 if (isset($unitTests_grandTotalErrors)) {
408 $errorColor="green";
409 if ($unitTests_grandTotalErrors > 0) {
410 $errorColor="red";
411 }
412 echo "<a href=\"testResults.php\">Unit test results</a>&nbsp;";
413 echo "<img src=\"junit_err.gif\"/><font color=\"" . $errorColor . "\">" . $unitTests_grandTotalErrors . "</font>&nbsp;&nbsp;Total: " . $unitTests_grandTotalTests;
414 }
415 else {
416 echo "<br /><font color=\"orange\">Unit tests are pending</font>&nbsp;&nbsp;<img src=\"pending.gif\"/>";
417 }
418
419 echo "<br />";
420 echo "<a href=\"compileResults.php\">Compile logs: Code Bundles</a>";
421
422 echo "&nbsp;&nbsp;($code_totalBundles)&nbsp;&nbsp;";
423 echo "<img src=\"compile_err.gif\"/><font color=red>$code_totalErrors</font>&nbsp;";
424 echo "<img src=\"compile_warn.gif\"/><font color=orange>$code_totalWarnings</font>&nbsp;";
425 echo "<img src=\"access_err.gif\"/><font color=red>$code_totalforbiddenAccessWarningCount</font>&nbsp;";
426 echo "<img src=\"access_warn.gif\"/><font color=orange>$code_totaldiscouragedAccessWarningCount</font>&nbsp;";
427
428 echo "<br />";
429 echo "<a href=\"testCompileResults.php\">Compile logs: Test Bundles</a>";
430
431 echo "&nbsp;&nbsp;($test_totalBundles)&nbsp;&nbsp;";
432 echo "<img src=\"compile_err.gif\"/><font color=red>$test_totalErrors</font>&nbsp;";
433 echo "<img src=\"compile_warn.gif\"/><font color=orange>$test_totalWarnings</font>&nbsp;";
434 echo "<img src=\"access_err.gif\"/><font color=red>$test_totalforbiddenAccessWarningCount</font>&nbsp;";
435 echo "<img src=\"access_warn.gif\"/><font color=orange>$test_totaldiscouragedAccessWarningCount</font>&nbsp;";
436 }
437
438 ?> <br />
439
440 <?php
441 if (file_exists("versioningReportName.php")) {
442 include "versioningReportName.php";
443 $fname="${versionReportFilename}.html";
444 if (file_exists($fname)) {
445 echo "<br /> <a href='$fname'>Versioning Information</a>";
446 }
447}
448?> <?php
449echo "<br />";
450if (file_exists("./apiresults/api-progress.html"))
451{
452 echo "<br /> <a href=\"apiresults/api-progress.html\">API Progress Report</a>";
453}
454if (file_exists("./apiresults/api-info-summary.html"))
455{
456 echo "<br /> <a href=\"apiresults/api-info-summary.html\">APIs Defined by Each Component</a>";
457}
458if (file_exists("./apiresults/api-ref-compatibility.html"))
459{
460 echo "<br /> <a href=\"apiresults/api-ref-compatibility.html\">Adopter Breakage Report</a>";
461}
462if (file_exists("./apiresults/api-violation-summary.html"))
463{
464 echo "<br /> <a href=\"apiresults/api-violation-summary.html\">API Violations</a>";
465}
466if (file_exists("./apiresults/component-api-violation-all.html"))
467{
468 echo "<br /> <a href=\"apiresults/component-api-violation-all.html\">Non-API dependencies</a>";
469}
470if (file_exists("./apiresults/api-tc-summary.html"))
471{
472 echo "<br /> <a href=\"apiresults/api-tc-summary.html\">API Test Coverage</a>";
473}
474if (file_exists("./apiresults/api-javadoc-summary.html"))
475{
476 echo "<br /> <a href=\"apiresults/api-javadoc-summary.html\">API Javadoc Coverage</a>";
477}
478if (file_exists("./apiresults/api-tc-summary.html"))
479{
480 echo "<br /><br /> <a href=\"apiresults/full_test_coverage/api-tc-summary.html\">Test Coverage for All Classes and Methods</a>";
481}
482?> <?php
483if (file_exists("./perfresults/graph/performance.php"))
484{
485 echo "<br />";
486 echo "<br /> <a href=\"perfresults/graph/performance.php\">Performance Results</a>";
487 echo "<br />";
488}
489?></td>
490 </tr>
491
492
493 </table>
494 </td>
495 </tr>
496</table>
497
498
499
500<!-- footer -->
501<center>
502<hr>
503<p>All downloads are provided under the terms and conditions of the <a
504 href="http://www.eclipse.org/legal/notice.html">Eclipse.org Software
505User Agreement</a> unless otherwise specified.</p>
506
507<p>If you have problems downloading the drops, contact the <font
508 face="'Bitstream Vera',Helvetica,Arial" size="-1"><a
509 href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
510
511</center>
512<!-- end footer -->
513
514
515</body>
516</html>