directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r676384 - /directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Date Sun, 13 Jul 2008 18:03:21 GMT
Author: akarasulu
Date: Sun Jul 13 11:03:21 2008
New Revision: 676384

URL: http://svn.apache.org/viewvc?rev=676384&view=rev
Log:
removing main() for plugin which seems antiquated also with hardcoded versions and paths.

Modified:
    directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java

Modified: directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java?rev=676384&r1=676383&r2=676384&view=diff
==============================================================================
--- directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
(original)
+++ directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Sun Jul 13 11:03:21 2008
@@ -907,68 +907,4 @@
 
         return buf;
     }
-
-
-    /** A main to be able to debug the plugin */
-    public static void main( String[] args )
-    {
-        BootstrapPlugin bp = new BootstrapPlugin();
-
-        bp.disabledSchemas = new String[]
-            { "nis", "krb5kdc", "samba", "autofs", "apachedns", "corba", "dhcp", "mozilla"
};
-
-        bp.indexedAttributes = new String[]
-            { "objectClass", "ou", "cn", "m-oid", "m-disabled" };
-
-        bp.bootstrapSchemaClasses = new String[]
-            { "org.apache.directory.server.schema.bootstrap.ApachednsSchema",
-                "org.apache.directory.server.schema.bootstrap.AutofsSchema",
-                "org.apache.directory.server.schema.bootstrap.CollectiveSchema",
-                "org.apache.directory.server.schema.bootstrap.CorbaSchema",
-                "org.apache.directory.server.schema.bootstrap.CosineSchema",
-                "org.apache.directory.server.schema.bootstrap.DhcpSchema",
-                "org.apache.directory.server.schema.bootstrap.InetorgpersonSchema",
-                "org.apache.directory.server.schema.bootstrap.JavaSchema",
-                "org.apache.directory.server.schema.bootstrap.Krb5kdcSchema",
-                "org.apache.directory.server.schema.bootstrap.MozillaSchema",
-                "org.apache.directory.server.schema.bootstrap.NisSchema",
-                "org.apache.directory.server.schema.bootstrap.SambaSchema" };
-
-        bp.outputDirectory = new File( "/tmp" );
-        bp.outputPackage = "org.apache.directory.server.schema.bootstrap.partition";
-        bp.listingFileName = "DBFILES";
-        bp.classpathElements = Arrays
-            .asList( new String[]
-                {
-                    "/home/elecharny/apacheds/bb/apacheds/bootstrap-partition/target/classes",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-jdbm-store/1.5.3-SNAPSHOT/apacheds-jdbm-store-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-jdbm/1.5.3-SNAPSHOT/apacheds-jdbm-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/shared/shared-ldap/0.9.11-SNAPSHOT/shared-ldap-0.9.11-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar",
-                    "/home/elecharny/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/shared/shared-asn1/0.9.11-SNAPSHOT/shared-asn1-0.9.11-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/slf4j/slf4j-api/1.4.3/slf4j-api-1.4.3.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/shared/shared-ldap-constants/0.9.11-SNAPSHOT/shared-ldap-constants-0.9.11-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-core-constants/1.5.3-SNAPSHOT/apacheds-core-constants-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-core-entry/1.5.3-SNAPSHOT/apacheds-core-entry-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-schema-registries/1.5.3-SNAPSHOT/apacheds-schema-registries-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-core-shared/1.5.3-SNAPSHOT/apacheds-core-shared-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-btree-base/1.5.3-SNAPSHOT/apacheds-btree-base-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-bootstrap-extract/1.5.3-SNAPSHOT/apacheds-bootstrap-extract-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-schema-extras/1.5.3-SNAPSHOT/apacheds-schema-extras-1.5.3-SNAPSHOT.jar",
-                    "/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-schema-bootstrap/1.5.3-SNAPSHOT/apacheds-schema-bootstrap-1.5.3-SNAPSHOT.jar"
} );
-        try
-        {
-            bp.execute();
-        }
-        catch ( MojoExecutionException mee )
-        {
-            // Do nothing
-        }
-        catch ( MojoFailureException mfe)
-        {
-            // Do nothing
-        }
-    }
 }



Mime
View raw message