directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r374242 - in /directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server: DirectoryServer.java ServerMain.java
Date Thu, 02 Feb 2006 04:01:43 GMT
Author: akarasulu
Date: Wed Feb  1 20:01:41 2006
New Revision: 374242

URL: http://svn.apache.org/viewcvs?rev=374242&view=rev
Log:
pushed printing banner in deeper so it shows when installed using installers

Modified:
    directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/DirectoryServer.java
    directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/ServerMain.java

Modified: directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/DirectoryServer.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/DirectoryServer.java?rev=374242&r1=374241&r2=374242&view=diff
==============================================================================
--- directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/DirectoryServer.java
(original)
+++ directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/DirectoryServer.java
Wed Feb  1 20:01:41 2006
@@ -54,6 +54,7 @@
 
     public void init( InstallationLayout install, String[] args ) throws Exception
     {
+        printBanner();
         long startTime = System.currentTimeMillis();
         MutableServerStartupConfiguration cfg;
 
@@ -170,5 +171,19 @@
                 }
             }
         }
+    }
+    
+    
+    public static final String BANNER = 
+        "           _                     _          ____  ____   \n" +
+        "          / \\   _ __   __ _  ___| |__   ___|  _ \\/ ___|  \n" +
+        "         / _ \\ | '_ \\ / _` |/ __| '_ \\ / _ \\ | | \\___ \\   \n" +
+        "        / ___ \\| |_) | (_| | (__| | | |  __/ |_| |___) |  \n" +
+        "       /_/   \\_\\ .__/ \\__,_|\\___|_| |_|\\___|____/|____/   \n" +
+        "               |_|                                                             
 \n";
+
+    public static void printBanner()
+    {
+        System.out.println( BANNER );
     }
 }

Modified: directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/ServerMain.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/ServerMain.java?rev=374242&r1=374241&r2=374242&view=diff
==============================================================================
--- directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/ServerMain.java
(original)
+++ directory/trunks/apacheds/simple/main/src/main/java/org/apache/ldap/server/ServerMain.java
Wed Feb  1 20:01:41 2006
@@ -20,8 +20,6 @@
 import java.io.File;
 
 import org.apache.directory.daemon.InstallationLayout;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 
 /**
@@ -33,8 +31,6 @@
  */
 public class ServerMain
 {
-    private static final Logger log = LoggerFactory.getLogger( "main" );
-
     /**
      * Takes a single argument, the path to the installation home, which contains 
      * the configuration to load with server startup settings.
@@ -43,11 +39,6 @@
      */
     public static void main( String[] args ) throws Exception
     {
-        if ( log.isInfoEnabled() )
-        {
-            printBanner();
-        }
-        
         DirectoryServer server = new DirectoryServer();
 
         if ( args.length > 0 && new File( args[0] ).isDirectory() )
@@ -65,18 +56,5 @@
             server.init( null, null );
             server.start();
         }
-    }
-    
-    public static final String BANNER = 
-        "           _                     _          ____  ____   \n" +
-        "          / \\   _ __   __ _  ___| |__   ___|  _ \\/ ___|  \n" +
-        "         / _ \\ | '_ \\ / _` |/ __| '_ \\ / _ \\ | | \\___ \\   \n" +
-        "        / ___ \\| |_) | (_| | (__| | | |  __/ |_| |___) |  \n" +
-        "       /_/   \\_\\ .__/ \\__,_|\\___|_| |_|\\___|____/|____/   \n" +
-        "               |_|                                                             
 \n";
-
-    public static void printBanner()
-    {
-        System.out.println( BANNER );
     }
 }



Mime
View raw message