You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2010/01/21 20:26:27 UTC

svn commit: r901834 - in /directory/installers/trunk/apacheds-noarch: pom.xml src/main/java/org/apache/directory/server/Service.java

Author: akarasulu
Date: Thu Jan 21 19:26:26 2010
New Revision: 901834

URL: http://svn.apache.org/viewvc?rev=901834&view=rev
Log:
fixing some dependencies and removing warnings

Modified:
    directory/installers/trunk/apacheds-noarch/pom.xml
    directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java

Modified: directory/installers/trunk/apacheds-noarch/pom.xml
URL: http://svn.apache.org/viewvc/directory/installers/trunk/apacheds-noarch/pom.xml?rev=901834&r1=901833&r2=901834&view=diff
==============================================================================
--- directory/installers/trunk/apacheds-noarch/pom.xml (original)
+++ directory/installers/trunk/apacheds-noarch/pom.xml Thu Jan 21 19:26:26 2010
@@ -100,10 +100,15 @@
   </build>
   
   <dependencies>
-  	<dependency>
+    <dependency>
       <groupId>org.apache.directory.server</groupId>
       <artifactId>apacheds-core-annotations</artifactId>
       <version>${pom.version}</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core-api</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
   </dependencies>
 </project>

Modified: directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
URL: http://svn.apache.org/viewvc/directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java?rev=901834&r1=901833&r2=901834&view=diff
==============================================================================
--- directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java (original)
+++ directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java Thu Jan 21 19:26:26 2010
@@ -26,10 +26,9 @@
 import org.apache.directory.daemon.InstanceLayout;
 import org.apache.directory.server.changepw.ChangePasswordServer;
 import org.apache.directory.server.configuration.ApacheDS;
-import org.apache.directory.server.core.DefaultDirectoryService;
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory;
-import org.apache.directory.server.dns.DnsServer;
+//import org.apache.directory.server.dns.DnsServer;
 import org.apache.directory.server.integration.http.HttpServer;
 import org.apache.directory.server.kerberos.kdc.KdcServer;
 import org.apache.directory.server.ldap.LdapServer;
@@ -58,7 +57,7 @@
     private NtpServer ntpServer;
     
     /** The DNS server instance */
-    private DnsServer dnsServer;
+//    private DnsServer dnsServer;
     
     /** The Change Password server instance */
     private ChangePasswordServer changePwdServer;
@@ -183,37 +182,37 @@
     /**
      * Initialize the DNS server
      */
-    private void initDns( InstanceLayout layout, String[] args ) throws Exception
-    {
-        if ( factory == null )
-        {
-            return;
-        }
-
-        try
-        {
-            dnsServer = ( DnsServer ) factory.getBean( "dnsServer" );
-        }
-        catch ( Exception e )
-        {
-            LOG.info( "Cannot find any reference to the DNS Server in the server.xml file : the server won't be started" );
-            return;
-        }
-        
-        System.out.println( "Starting the DNS server" );
-        LOG.info( "Starting the DNS server" );
-        
-        printBanner( BANNER_DNS );
-        long startTime = System.currentTimeMillis();
-
-        dnsServer.start();
-        System.out.println( "DNS Server started" );
-
-        if ( LOG.isInfoEnabled() )
-        {
-            LOG.info( "DNS server: started in {} milliseconds", ( System.currentTimeMillis() - startTime ) + "" );
-        }
-    }
+//    private void initDns( InstanceLayout layout, String[] args ) throws Exception
+//    {
+//        if ( factory == null )
+//        {
+//            return;
+//        }
+//
+//        try
+//        {
+//            dnsServer = ( DnsServer ) factory.getBean( "dnsServer" );
+//        }
+//        catch ( Exception e )
+//        {
+//            LOG.info( "Cannot find any reference to the DNS Server in the server.xml file : the server won't be started" );
+//            return;
+//        }
+//        
+//        System.out.println( "Starting the DNS server" );
+//        LOG.info( "Starting the DNS server" );
+//        
+//        printBanner( BANNER_DNS );
+//        long startTime = System.currentTimeMillis();
+//
+//        dnsServer.start();
+//        System.out.println( "DNS Server started" );
+//
+//        if ( LOG.isInfoEnabled() )
+//        {
+//            LOG.info( "DNS server: started in {} milliseconds", ( System.currentTimeMillis() - startTime ) + "" );
+//        }
+//    }
 
 
     /**
@@ -385,22 +384,22 @@
         + "               |_|                                              \n";
 
 
-    private static final String BANNER_DNS =
-          "           _                     _          ____  _   _ ____    \n"
-        + "          / \\   _ __    ___  ___| |__   ___|  _ \\| \\ | / ___|   \n"
-        + "         / _ \\ | '_ \\ / _` |/ __| '_ \\ / _ \\ | | |  \\| \\__  \\   \n"
-        + "        / ___ \\| |_) | (_| | (__| | | |  __/ |_| | . ' |___) |  \n"
-        + "       /_/   \\_\\ .__/ \\__,_|\\___|_| |_|\\___|____/|_|\\__|____/   \n"
-        + "               |_|                                              \n";
-
-    
-    private static final String BANNER_DHCP =
-          "           _                     _          ____  _   _  ___ ____  \n"
-        + "          / \\   _ __    ___  ___| |__   ___|  _ \\| | | |/ __|  _ \\ \n"
-        + "         / _ \\ | '_ \\ / _` |/ __| '_ \\ / _ \\ | | | |_| / /  | |_) )\n"
-        + "        / ___ \\| |_) | (_| | (__| | | |  __/ |_| |  _  \\ \\__|  __/ \n"
-        + "       /_/   \\_\\ .__/ \\__,_|\\___|_| |_|\\___|____/|_| |_|\\___|_|    \n"
-        + "               |_|                                                 \n";
+//    private static final String BANNER_DNS =
+//          "           _                     _          ____  _   _ ____    \n"
+//        + "          / \\   _ __    ___  ___| |__   ___|  _ \\| \\ | / ___|   \n"
+//        + "         / _ \\ | '_ \\ / _` |/ __| '_ \\ / _ \\ | | |  \\| \\__  \\   \n"
+//        + "        / ___ \\| |_) | (_| | (__| | | |  __/ |_| | . ' |___) |  \n"
+//        + "       /_/   \\_\\ .__/ \\__,_|\\___|_| |_|\\___|____/|_|\\__|____/   \n"
+//        + "               |_|                                              \n";
+//
+//    
+//    private static final String BANNER_DHCP =
+//          "           _                     _          ____  _   _  ___ ____  \n"
+//        + "          / \\   _ __    ___  ___| |__   ___|  _ \\| | | |/ __|  _ \\ \n"
+//        + "         / _ \\ | '_ \\ / _` |/ __| '_ \\ / _ \\ | | | |_| / /  | |_) )\n"
+//        + "        / ___ \\| |_) | (_| | (__| | | |  __/ |_| |  _  \\ \\__|  __/ \n"
+//        + "       /_/   \\_\\ .__/ \\__,_|\\___|_| |_|\\___|____/|_| |_|\\___|_|    \n"
+//        + "               |_|                                                 \n";
         
 
     private static final String BANNER_CHANGE_PWD =