[FIXED HUDSON-4063] disable DownloadService during tests

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20370 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
huybrechts committed 2009-08-01 15:47:55 +00:00
1 parent 380238f16c
commit 163c08003e
2 files changed
+7 -1

No files matched your search

@@ -35,6 +35,8 @@ public class DownloadService extends PageDecorator {
* Builds up an HTML fragment that starts all the download jobs.
*/
public String generateFragment() {
if (neverUpdate) return "";
StringBuilder buf = new StringBuilder();
if(Hudson.getInstance().hasPermission(Hudson.READ)) {
long now = System.currentTimeMillis();
@@ -196,5 +198,7 @@ public class DownloadService extends PageDecorator {
private static final Logger LOGGER = Logger.getLogger(Downloadable.class.getName());
}
public static boolean neverUpdate = Boolean.getBoolean(DownloadService.class.getName()+".never");
}