updated download.php to become more dynamic
diff --git a/downloads.php b/downloads.php
index 5fa8285..dc71930 100644
--- a/downloads.php
+++ b/downloads.php
@@ -9,11 +9,8 @@
$pageTitle = "SWTBot – Downloads";
- # Add page-specific Nav bars here
- # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
- # $Nav->addNavSeparator("My Page Links", "downloads.php");
- # $Nav->addCustomNav("My Link", "mypage.php", "_self", 3);
- # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3);
+ $dev_version = file_get_contents($App->getDownloadBasePath()."/technology/swtbot/dev-build/version.txt");
+ $stable_version = file_get_contents($App->getDownloadBasePath()."/technology/swtbot/version.txt");
# Paste your HTML content between the ob_start/ob_end_clean markers!
ob_start();
@@ -31,27 +28,44 @@
<p>Nightly builds of SWTBot are extremely stable, since SWTBot has a large number of tests, providing very good test coverage.</p>
- <p>Supports Eclipse 3.3 and above</p>
+ <p><strong>Supports Eclipse 3.3 and above</strong></p>
<ul>
<li>
- <a title="Update Site Zip" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/swtbot-update-site-2.0.0.160-dev.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a>
- <a href="http://download.eclipse.org/technology/swtbot/dev-build/update-site">http://download.eclipse.org/technology/swtbot/dev-build/update-site</a> (Eclipse 3.3 and above)
+ <a title="Update Site Zip" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/swtbot-update-site-<? echo $dev_version; ?>.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a>
+ <a href="http://download.eclipse.org/technology/swtbot/dev-build/update-site">http://download.eclipse.org/technology/swtbot/dev-build/update-site</a>
</li>
<li>
- <a title="SWTBot for SWT Testing" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/org.eclipse.swtbot-2.0.0.160-dev.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a> <b>SWTBot for SWT Testing</b>
+ <a title="SWTBot for SWT Testing" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/org.eclipse.swtbot-<? echo $dev_version; ?>.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a> <b>SWTBot for SWT Testing</b>
</li>
<li>
- <a title="SWTBot for SWT Testing" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/org.eclipse.swtbot.eclipse-2.0.0.160-dev.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a> <b>SWTBot for Eclipse Testing</b>
+ <a title="SWTBot for SWT Testing" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/org.eclipse.swtbot.eclipse-<? echo $dev_version; ?>.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a> <b>SWTBot for Eclipse Testing</b>
</li>
<li>
- <a title="SWTBot for SWT Testing" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/org.eclipse.swtbot.eclipse.test-2.0.0.160-dev.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a> <b>Headless Testing Framework (for running tests from within ant)</b>
+ <a title="SWTBot for SWT Testing" href="http://www.eclipse.org/downloads/download.php?file=/technology/swtbot/dev-build/org.eclipse.swtbot.eclipse.test-<? echo $dev_version; ?>.zip"><img border=0 src="/swtbot/images/icon-save.gif"></a> <b>Headless Testing Framework (for running tests from within ant)</b>
</li>
</ul>
+
+ <h4>Test Coverage reports</h4>
+
+ <p></p>
+
+ <p><a href="http://download.eclipse.org/technology/swtbot/dev-build/coverage/org.eclipse.swtbot.swt.finder.test/">Test Coverage Results for SWTBot</a>
+ <br/>
+ <a href="http://download.eclipse.org/technology/swtbot/dev-build/coverage/index.html">Test Coverage Results for other plugins</a></p>
+
+ <h4>JUnit reports</h4>
+
+ <p></p>
+
+ <p><a href="http://download.eclipse.org/technology/swtbot/dev-build/junit/org.eclipse.swtbot.swt.finder.test"><img src="/swtbot/images/junit.gif" />JUnit tests for SWTBot</a>
+ <br/>
+ <a href="http://download.eclipse.org/technology/swtbot/dev-build/junit/org.eclipse.swtbot.eclipse.finder.test/org.eclipse.swtbot.eclipse.finder.test.html"><img src="/swtbot/images/junit.gif" />JUnit tests for SWTBot For Eclipse testing</a></p>
+
</div>
</div>