From 6a67b87d11cab02daf8170e558f3f2feeae4dd74 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Fri, 27 Apr 2007 21:30:01 +0000
Subject: [PATCH] implements code to access and parse the newly published upgrade build availability information published at http://www.opends.org/upgrade-builds

---
 opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java b/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java
index 305e7f1..4c7956f 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java
@@ -240,10 +240,12 @@
   public RemoteBuildManager getRemoteBuildManager() {
     if (remoteBuildManager == null) {
       try {
-        // TODO: make this configurable.
-        // The slash at the end of the URL was/is important in getting the
-        // correct redirection from the web server
-        URL buildRepo = new URL("http://builds.opends.org/");
+        String listUrlString =
+                System.getProperty("org.opends.quicksetup.upgrader.BuildList");
+        if (listUrlString == null) {
+          listUrlString = "http://www.opends.org/upgrade-builds";
+        }
+        URL buildRepo = new URL(listUrlString);
         remoteBuildManager = new RemoteBuildManager(this, buildRepo);
       } catch (MalformedURLException e) {
         LOG.log(Level.INFO, "error", e);

--
Gitblit v1.10.0