geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r515441 - /geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/Daemon.java
Date Wed, 07 Mar 2007 03:40:07 GMT
Author: jdillon
Date: Tue Mar  6 19:40:07 2007
New Revision: 515441

URL: http://svn.apache.org/viewvc?view=rev&rev=515441
Log:
Tidy up a few minor bits
Drop unused privates

Modified:
    geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/Daemon.java

Modified: geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/Daemon.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/Daemon.java?view=diff&rev=515441&r1=515440&r2=515441
==============================================================================
--- geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/Daemon.java
(original)
+++ geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/Daemon.java
Tue Mar  6 19:40:07 2007
@@ -63,7 +63,7 @@
         // Very first startup tasks
         long start = System.currentTimeMillis();
         // Command line arguments affect logging configuration, etc.
-        if(processArguments(args)) {
+        if (processArguments(args)) {
             System.out.println("Booting Geronimo Kernel (in Java " + System.getProperty("java.version")
+ ")...");
             System.out.flush();
 
@@ -122,33 +122,31 @@
         boolean override = false;
         boolean help = false;
         for (int i = 0; i < args.length; i++) {
-            if(override) {
+            if (override) {
                 configs.add(Artifact.create(args[i]));
             } else if (args[i].equals(ARGUMENT_NO_PROGRESS)) {
                 noProgressArg = ARGUMENT_NO_PROGRESS;
             } else if (args[i].equals(ARGUMENT_LONG_PROGRESS)) {
                 longProgressArg = ARGUMENT_LONG_PROGRESS;
-            } else if (args[i].equals(ARGUMENT_VERBOSE_SHORTFORM) ||
-                    args[i].equals(ARGUMENT_VERBOSE)) {
+            } else if (args[i].equals(ARGUMENT_VERBOSE_SHORTFORM) || args[i].equals(ARGUMENT_VERBOSE))
{
                 if (verboseArg == null) {
                     verboseArg = ARGUMENT_VERBOSE;
                 }
-            } else if (args[i].equals(ARGUMENT_MORE_VERBOSE_SHORTFORM) ||
-                    args[i].equals(ARGUMENT_MORE_VERBOSE)) {
+            } else if (args[i].equals(ARGUMENT_MORE_VERBOSE_SHORTFORM) || args[i].equals(ARGUMENT_MORE_VERBOSE))
{
                 if (verboseArg == null) {
                     verboseArg = ARGUMENT_MORE_VERBOSE;
                 }
             } else if (args[i].equals(ARGUMENT_MODULE_OVERRIDE)) {
                 override = true;
-            } else if(args[i].equalsIgnoreCase("-help") || args[i].equalsIgnoreCase("--help")
||
-                    args[i].equalsIgnoreCase("-h") || args[i].equalsIgnoreCase("/?")) {
+            } else if (args[i].equalsIgnoreCase("-help") || args[i].equalsIgnoreCase("--help")
||
+                       args[i].equalsIgnoreCase("-h") || args[i].equalsIgnoreCase("/?"))
{
                 help = true;
             } else {
                 System.out.println("Unrecognized argument: "+args[i]);
                 help = true;
             }
         }
-        if(help) {
+        if (help) {
             printHelp(System.out);
         }
         return !help;
@@ -189,22 +187,6 @@
                 monitor = new ProgressBarStartupMonitor();
             }
         }
-
-        // JVMCheck();   // Removed for 1.1
-    }
-
-    //
-    // FIXME: This is not used...
-    //
-    
-    private void JVMCheck() {
-        String jvmVersion = System.getProperty("java.specification.version");
-        if (! jvmVersion.equals("1.4"))
-            log.warn("\n====================================== Warning =======================================\n"
+
-                     " Geronimo is currently only certified on version 1.4 of the Java Virtual
Machine.\n" +
-                     " Use of version " + jvmVersion + " is not currently supported.  Use
at your own risk.\n" +
-                     " Check http://geronimo.apache.org for current information on JDK certification
level.\n" +
-                     "====================================== Warning =======================================");
     }
 
     private void doStartup() {
@@ -346,30 +328,6 @@
             throw new AssertionError();
         }
     }
-    
-    //
-    // FIXME: This is not used...
-    //
-    
-    private void AddToSystemProperty(String propertyName, List dirsFromManifest, File geronimoInstallDirectory)
{
-        String dirs = System.getProperty(propertyName, "");
-        for (Iterator iterator = dirsFromManifest.iterator(); iterator.hasNext();) {
-            String directoryName = (String) iterator.next();
-            File directory = new File(directoryName);
-            if (!directory.isAbsolute()) {
-                directory = new File(geronimoInstallDirectory, directoryName);
-            }
-
-            if (dirs.length() > 0) {
-                dirs += File.pathSeparatorChar;
-            }
-            dirs += directory.getAbsolutePath();
-        }
-        if (dirs.length() > 0) {
-            System.setProperty(propertyName, dirs);
-        }
-        log.debug(propertyName + "=" + System.getProperty(propertyName));
-    }
 
     /**
      * Static entry point allowing a Kernel to be run from the command line.
@@ -383,5 +341,4 @@
     public static void main(String[] args) {
         new Daemon(args);
     }
-
 }



Mime
View raw message