org.apache.directory.server.config
Class LdifConfigExtractor

java.lang.Object
  extended by org.apache.directory.server.config.LdifConfigExtractor

public class LdifConfigExtractor
extends java.lang.Object

A class to copy the default config to the work directory of a DirectoryService instance. NOTE: much of this class code is duplicated from DefaultSchemaLdifExtractor class We should create a AbstractLdifExtractor class and move the reusable code there

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
LdifConfigExtractor()
           
 
Method Summary
static void extract(java.io.File outputDirectory, boolean overwrite)
          Extracts the LDIF files from a Jar file or copies exploded LDIF resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdifConfigExtractor

public LdifConfigExtractor()
Method Detail

extract

public static void extract(java.io.File outputDirectory,
                           boolean overwrite)
                    throws java.io.IOException
Extracts the LDIF files from a Jar file or copies exploded LDIF resources.

Parameters:
overwrite - over write extracted structure if true, false otherwise
Throws:
java.io.IOException - if schema already extracted and on IO errors


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.