blob: 484548540af13406a74ecfec809813bf290e5c41 [file] [log] [blame]
david_williams1bbef912011-09-25 06:14:54 +00001<html>
2<head>
3
4
5
6<?php
7$parts = explode("/", getcwd());
8$parts2 = explode("-", $parts[count($parts) - 1]);
9$buildName = $parts2[1];
10
11echo "<title>Diagnosic logs for HTTP requests for $buildName </title>";
12?>
13<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
14<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
15 type="text/css">
16<title>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</title>
17</head>
18<body>
19
20<h1>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</h1>
21 <?php
22 $rootDir = "testResults/httplogstest/";
23 $hasNotes = false;
24 $aDirectory = dir($rootDir);
25 $index = 0;
26 $dirindex = 0;
27 while ($anEntry = $aDirectory->read()) {
28 if ($anEntry != "." && $anEntry != "..") {
29 if (is_file("$rootDir/$anEntry")) {
30 $entries[$index] = $anEntry;
31 $index++;
32 }
33 }
34 }
35 $aDirectory->close();
36
37
38 sort($entries);
39
40
41 for ($i = 0; $i < $index; $i++) {
42 $anEntry = $entries[$i];
43 $logsize = filesize("$rootDir/$anEntry");
44
45 echo "<a href=\"$rootDir/$anEntry\">$anEntry</a> ($logsize bytes) <br />";
46
47 $hasNotes = true;
48 }
49
50 if (!$hasNotes) {
51 echo "<br>If there are no logs here, that (likely) means the HTTP Trace Diagnostic jar needs to be copied to the test JREs lib/ext directory.";
52 }
53 ?>
54
55 </table>
56</body>
57</html>