Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2012-10-16 17:59:31 -0400
committerWinston Prakash2012-10-16 17:59:31 -0400
commitbe4e079d8db84dbefb2a7c4c524737901fea7be8 (patch)
tree8041894123e721912c16c8b88c3e5a8780062bac
parentcbf196f2f4784505a3f973149ac2e0ab4713da52 (diff)
downloadorg.eclipse.hudson.core-be4e079d8db84dbefb2a7c4c524737901fea7be8.tar.gz
org.eclipse.hudson.core-be4e079d8db84dbefb2a7c4c524737901fea7be8.tar.xz
org.eclipse.hudson.core-be4e079d8db84dbefb2a7c4c524737901fea7be8.zip
The update site specified in UpdateSiteManager should be overridable via command line argument
-rw-r--r--hudson-core/src/main/java/org/eclipse/hudson/plugins/UpdateSiteManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/hudson-core/src/main/java/org/eclipse/hudson/plugins/UpdateSiteManager.java b/hudson-core/src/main/java/org/eclipse/hudson/plugins/UpdateSiteManager.java
index 62234830..fdc2951f 100644
--- a/hudson-core/src/main/java/org/eclipse/hudson/plugins/UpdateSiteManager.java
+++ b/hudson-core/src/main/java/org/eclipse/hudson/plugins/UpdateSiteManager.java
@@ -42,7 +42,8 @@ public final class UpdateSiteManager {
public static final String FEATURED = "featured";
public static final String RECOMMENDED = "recommended";
private Map<String, AvailablePluginInfo> availablePluginInfos = new TreeMap<String, AvailablePluginInfo>(String.CASE_INSENSITIVE_ORDER);
- private String updateSiteUrl = "http://hudson-ci.org/update-center3/update-center.json";
+ private final String updateServer = System.getProperty("updateServer", "http://hudson-ci.org/update-center3/");
+ private String updateSiteUrl = updateServer + "update-center.json";
private ProxyConfiguration proxyConfig;
private final String id = "default";
private File hudsonHomeDir;

Back to the top