public final class LdifConfigExtractor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LDIF_CONFIG_FILE |
| Modifier and Type | Method and Description |
|---|---|
static void |
extract(File outputDirectory,
boolean overwrite)
Extracts the LDIF files from a Jar file or copies exploded LDIF resources.
|
static String |
extractSingleFileConfig(File configDir,
String file,
boolean overwrite)
extracts or overwrites the configuration LDIF file and returns the absolute path of this file
|
public static final String LDIF_CONFIG_FILE
public static void extract(File outputDirectory, boolean overwrite) throws IOException
outputDirectory - The directory where to extract the configurationoverwrite - over write extracted structure if true, false otherwiseIOException - if schema already extracted and on IO errorspublic static String extractSingleFileConfig(File configDir, String file, boolean overwrite)
configDir - the directory where the config file should be extracted tofile - The file containing the configurationoverwrite - flag to indicate to overwrite the config file if already present in the given config directoryCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.