From 2155def10e32885ae6f05fa8556bd9099c400f39 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 01 May 2007 21:47:07 +0000
Subject: [PATCH] This code introduces creation of a log file in the system's temporary directory for detailed log messages that can be used by any of the quicksetup applications (install, uninstall, upgrade).  Right now logging if fairly meager but we should work on this soon.  This work is being done in anticipation of changes that Brian has suggested in reducing the verbosity of the quicksetup applications.  The idea is to put the details in the file and omit the messages in the progress panel details area (for instance messages about moving files around).

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java
index 4ba3e66..3327919 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java
@@ -69,6 +69,11 @@
    */
   static public int BUG = 5;
 
+  /**
+   * Return code for errors that are non-specified.
+   */
+  static public int UNKNOWN = 100;
+
   /** Platform dependent filesystem separator. */
   public static String LINE_SEPARATOR = System.getProperty("line.separator");
 
@@ -152,9 +157,9 @@
             returnValue = BUG;
             break;
 
-            default:
-              throw new IllegalStateException(
-                  "Unknown ApplicationException type: "+ue.getType());
+          default:
+            returnValue = UNKNOWN;
+            break;
           }
         }
         else

--
Gitblit v1.10.0