From 9f02386426b5bb5d931e92c80060fad06b693dd2 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Sun, 19 Aug 2007 00:07:10 +0000
Subject: [PATCH] Fix for issue 2112.

---
 opends/src/server/org/opends/server/util/SetupUtils.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/SetupUtils.java b/opends/src/server/org/opends/server/util/SetupUtils.java
index b8c65a3..1bbe5ac 100644
--- a/opends/src/server/org/opends/server/util/SetupUtils.java
+++ b/opends/src/server/org/opends/server/util/SetupUtils.java
@@ -52,6 +52,27 @@
 public class SetupUtils
 {
   /**
+   * Java property used to known if we are using web start or not.
+   */
+  public static final String IS_WEBSTART = "org.opends.quicksetup.iswebstart";
+
+  /**
+   * Java property used to know which are the jar files that must be downloaded
+   * lazily.  The current code in WebStartDownloader that uses this property
+   * assumes that the URL are separated with an space.
+   */
+  public static final String LAZY_JAR_URLS =
+      "org.opends.quicksetup.lazyjarurls";
+
+  /**
+   * Java property used to know which is the name of the zip file that must
+   * be unzipped and whose contents must be extracted during the Web Start
+   * based setup.
+   */
+  public static final String ZIP_FILE_NAME =
+      "org.opends.quicksetup.zipfilename";
+
+  /**
    * Creates a MakeLDIF template file using the provided information.
    *
    * @param  baseDN      The base DN for the data in the template file.
@@ -373,5 +394,16 @@
   {
     return 1689;
   }
+
+  /**
+   * Indicates whether we are in a web start installation or not.
+   *
+   * @return <CODE>true</CODE> if we are in a web start installation and
+   *         <CODE>false</CODE> if not.
+   */
+  public static boolean isWebStart()
+  {
+    return "true".equals(System.getProperty(IS_WEBSTART));
+  }
 }
 

--
Gitblit v1.10.0