blob: ac9c2cfda50e7ef225565f6d22d736cb16e5cb6a [file] [log] [blame]
david_williams26f3a5f2008-03-07 22:56:23 +00001<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4
5<title>WTP 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
65//ini_set("display_errors", "true");
66//error_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/wtp-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<?php
153
154// tiny banner to remind when looking at "local" machine results
155$serverName = $_SERVER["SERVER_NAME"];
156
157if (!stristr($serverName, "eclipse.org") && !stristr($serverName,"you.are.at.eclipsecon.org")) {
158 echo '<center>
159 <p>
160 Reminder: this is <font color="#FF0000">' .
161 $serverName .
162 '</font>
163 See also
164 <a href="http://download.eclipse.org/webtools/downloads" target="_top">the live public Eclipse site</a>.
165 </p>
166 <hr />
167 </center>';
168
169}
170?>
171<table BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="100%">
172 <tr>
173 <td ALIGN=left><font face="'Bitstream Vera',Helvetica,Arial" size="+2"><b><?php echo "$type";?>
174 Build: <?php echo "$build";?></b></font></td>
175
176
177 <tr>
178 <td><font size="-1"><?php echo "$builddate";?></font></td>
179 </tr>
180 <tr>
181 <td>
182 <p>The Eclipse Web Tools Platform Project provides tools for Web
183 Development, and is a platform for adopters making add-on tools for
184 Web Development.</p>
185 </td>
186 </tr>
187</table>
188
189<!-- *********** Required Prerequisites ************** -->
190<table border=0 cellspacing=2 cellpadding=2 width="100%">
191 <tr>
192 <td align="left" valign="top" bgcolor="#0080C0"><font
193 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Required
194 Prerequisites and Handy Extras</font></td>
195 </tr>
196 <tr>
197 <td>
198 <p>These are the prerequisites to install and run the Web Tools
199 Platform. Also listed are some frequently needed links for
200 committer-required packages when creating new developmnet
201 environmnets, or targets to run against.</p>
202 <p>Note that WTP requires Java 5 or higher (and, for some things,
203 actually requires a JDK rather than only a JRE) even though many other
204 <a href="http://www.eclipse.org/downloads/">Eclipse Projects</a> can
205 run with <a href="http://www.eclipse.org/downloads/moreinfo/jre.php">other
206 JRE levels</a>.</p>
207 </td>
208 </tr>
209 <tr>
210 <td>
211 <table border=0 cellspacing=1 cellpadding=1 width="90%" align="center">
212 <tr valign="top">
213 <td width="10%"></td>
214 <td width="55%">Eclipse Platform (Platform, JDT)</td>
215 <?php
216 //customize page depending on user's browser/platform, if we can detect it
217 $usersPlatform = getPlatform();
218 // assume windows by default, since likely most frequent, even for cases where
219 // platform is "unknown". I've noticed Opera reports 'unknown' :(
220 $recommendedFile=$eclipsefilewindows;
221 if (strcmp($usersPlatform,"linux")== 0) {
222 $recommendedFile=$eclipsefilelinux;
223 } else if (strcmp($usersPlatform,"mac") == 0) {
224 $recommendedFile=$eclipsefilemacosx;
225 }
226 ?>
227 <td align="right" width="35%"><?php
228 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipseURL, $recommendedFile, $eclipseFSpathPrefix);
229 echo " or <a href=\"" . $eclipseBuildURL . "\">appropriate platform</a>";
230 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
231 ?>
232
233 </tr>
234 <tr valign="top">
235 <td width="10%"></td>
236 <td>Eclipse Modeling Framework (EMF, XSD InfoSet, SDO)</td>
237 <td align="right"><?php
238 echo getPrereqReferenceOrName($eclipseMirrorScript, $emfMirrorPrefixuri, $emfURL, $emfFile, $eclipseFSpathPrefix);
239 echo " or <a href=\"" . $emfBuildHome . "\">equivalent</a></td>";
240 ?>
241
242 </tr>
243
244 <tr valign="top">
245 <td width="10%"></td>
246 <td>Graphical Editing Framework (GEF)</td>
247 <td align="right"><?php
248 echo getPrereqReferenceOrName($eclipseMirrorScript, $gefMirrorPrefixuri, $gefURL, $gefFile, $eclipseFSpathPrefix);
249 echo " or <a href=\"" . $gefBuildHome . "\">equivalent</a></td>";
250 ?>
251
252 </tr>
253
254 <tr valign="top">
255 <td width="10%"></td>
256 <td>Eclipse Test Framework (required only for Automated JUnit tests)</td>
257 <td align="right"><?php
258 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $testURL, $testFile, $eclipseFSpathPrefix);
259 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
260 ?>
261
262 </tr>
263
264 <tr valign="top">
265 <td width="10%"></td>
266 <td>Eclipse releng tool (required only for committers to more easily
267 "release" code to a build)</td>
268 <td align="right"><?php
269 echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipserelengURL, $eclipserelengFile, $eclipseFSpathPrefix);
270 echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
271 ?>
272
273 </tr>
274
275
276 </table>
277 </td>
278 </tr>
279</table>
280
281<!-- *********** WTP ************** -->
282<table border=0 cellspacing=2 cellpadding=2 width="100%">
283 <tr>
284 <td align=left valign=top colspan="5" bgcolor="#0080C0"><font
285 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF"> Web Tools
286 Platform Patches for WTP 2.0.2</font></td>
287 </tr>
288
289 <tr>
290 <td align="left" valign="top" colspan="5">
291 <p>The Zip files contain patches</p>
292 </td>
293 </tr>
294 <tr>
295 <td>
296 <table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
297
298
299 <tr>
300 <td align="left" valign="top" width="10%"><b>Patch</b></td>
301 <td align="left" valign="top">
302 <p>Remember, care is needed in using patches from this page. These
303 patches are specific to particular use-cases or adopters and not
304 well tested for general cases.</p>
305 </td>
306 <?php
307 $zipfilename="wtp-@build@";
308 $filename=$zipfilename.".zip";
309 $zipfilesize=fileSizeForDisplay($filename);
310 $fileShortDescription="@build@";
311 displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
312 ?>
313 </tr>
314 </table>
315 </td>
316
317
318 <tr>
319
320</table>
321
322
323
324
325
326
327
328<!-- *********** Build Status ************** -->
329<table border=0 cellspacing=2 cellpadding=2 width="100%">
330 <tr>
331 <td align=left valign=top bgcolor="#0080C0"><font
332 face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Status, tests
333 and other interesting details</font></td>
334 </tr>
335 <tr>
336 <td>
337 <table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
338
339 <tr>
340 <td><a href="buildNotes.php">Build notes</a> <br />
341 <a href="directory.txt">map files</a> <br />
342 <?php
343
344 if ($displayTestSummary) {
345
346
347 if (isset($unitTests_grandTotalErrors)) {
348 $errorColor="green";
349 if ($unitTests_grandTotalErrors > 0) {
350 $errorColor="red";
351 }
352 echo "<a href=\"testResults.php\">Unit test results</a>&nbsp;";
353 echo "<img src=\"junit_err.gif\"/><font color=\"" . $errorColor . "\">" . $unitTests_grandTotalErrors . "</font>&nbsp;&nbsp;Total: " . $unitTests_grandTotalTests;
354 }
355 else {
356 echo "<br /><font color=\"orange\">Unit tests are pending</font>&nbsp;&nbsp;<img src=\"pending.gif\"/>";
357 }
358
359 echo "<br />";
360 echo "<a href=\"compileResults.php\">Compile logs: Code Bundles</a>";
361
362 echo "&nbsp;&nbsp;($code_totalBundles)&nbsp;&nbsp;";
363 echo "<img src=\"compile_err.gif\"/><font color=red>$code_totalErrors</font>&nbsp;";
364 echo "<img src=\"compile_warn.gif\"/><font color=orange>$code_totalWarnings</font>&nbsp;";
365 echo "<img src=\"access_err.gif\"/><font color=red>$code_totalforbiddenAccessWarningCount</font>&nbsp;";
366 echo "<img src=\"access_warn.gif\"/><font color=orange>$code_totaldiscouragedAccessWarningCount</font>&nbsp;";
367
368 echo "<br />";
369 echo "<a href=\"testCompileResults.php\">Compile logs: Test Bundles</a>";
370
371 echo "&nbsp;&nbsp;($test_totalBundles)&nbsp;&nbsp;";
372 echo "<img src=\"compile_err.gif\"/><font color=red>$test_totalErrors</font>&nbsp;";
373 echo "<img src=\"compile_warn.gif\"/><font color=orange>$test_totalWarnings</font>&nbsp;";
374 echo "<img src=\"access_err.gif\"/><font color=red>$test_totalforbiddenAccessWarningCount</font>&nbsp;";
375 echo "<img src=\"access_warn.gif\"/><font color=orange>$test_totaldiscouragedAccessWarningCount</font>&nbsp;";
376 }
377
378 ?> <br />
379
380 <?php
381 if (file_exists("versioningReportName.php")) {
382 include "versioningReportName.php";
383 $fname="${versionReportFilename}.html";
384 if (file_exists($fname)) {
385 echo "<br /> <a href='$fname'>Versioning Information</a>";
386 }
387}
388?> <?php
389echo "<br />";
390if (file_exists("./apiresults/api-progress.html"))
391{
392 echo "<br /> <a href=\"apiresults/api-progress.html\">API Progress Report</a>";
393}
394if (file_exists("./apiresults/api-info-summary.html"))
395{
396 echo "<br /> <a href=\"apiresults/api-info-summary.html\">APIs Defined by Each Component</a>";
397}
398if (file_exists("./apiresults/api-ref-compatibility.html"))
399{
400 echo "<br /> <a href=\"apiresults/api-ref-compatibility.html\">Adopter Breakage Report</a>";
401}
402if (file_exists("./apiresults/api-violation-summary.html"))
403{
404 echo "<br /> <a href=\"apiresults/api-violation-summary.html\">API Violations</a>";
405}
406if (file_exists("./apiresults/component-api-violation-all.html"))
407{
408 echo "<br /> <a href=\"apiresults/component-api-violation-all.html\">Non-API dependencies</a>";
409}
410if (file_exists("./apiresults/api-tc-summary.html"))
411{
412 echo "<br /> <a href=\"apiresults/api-tc-summary.html\">API Test Coverage</a>";
413}
414if (file_exists("./apiresults/api-javadoc-summary.html"))
415{
416 echo "<br /> <a href=\"apiresults/api-javadoc-summary.html\">API Javadoc Coverage</a>";
417}
418if (file_exists("./apiresults/api-tc-summary.html"))
419{
420 echo "<br /><br /> <a href=\"apiresults/full_test_coverage/api-tc-summary.html\">Test Coverage for All Classes and Methods</a>";
421}
422?> <?php
423if (file_exists("./perfresults/graph/performance.php"))
424{
425 echo "<br />";
426 echo "<br /> <a href=\"perfresults/graph/performance.php\">Performance Results</a>";
427 echo "<br />";
428}
429?></td>
430 </tr>
431
432
433 </table>
434 </td>
435 </tr>
436</table>
437
438
439
440<!-- footer -->
441<center>
442<hr>
443<p>All downloads are provided under the terms and conditions of the <a
444 href="http://www.eclipse.org/legal/notice.html">Eclipse.org Software
445User Agreement</a> unless otherwise specified.</p>
446
447<p>If you have problems downloading the drops, contact the <font
448 face="'Bitstream Vera',Helvetica,Arial" size="-1"><a
449 href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
450
451</center>
452<!-- end footer -->
453
454
455</body>
456</html>