com.atlassian.crowd.apacheds
Class AppServerFriendlySchemaLdifExtractor
java.lang.Object
com.atlassian.crowd.apacheds.AppServerFriendlySchemaLdifExtractor
- All Implemented Interfaces:
- org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
public class AppServerFriendlySchemaLdifExtractor
- extends Object
- implements org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
DefaultSchemaLdifExtractor
makes assumptions about java.class.path
. Since we're just copying
resources to the filing system from a JAR file, reimplement in a way that works for our testing.
This assumes that SchemaLdifExtractor
is in a jar file that also holds the initial schema.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppServerFriendlySchemaLdifExtractor
public AppServerFriendlySchemaLdifExtractor(File outputDirectory)
extractOrCopy
public void extractOrCopy()
throws IOException
- Specified by:
extractOrCopy
in interface org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
- Throws:
IOException
isExtracted
public boolean isExtracted()
- Specified by:
isExtracted
in interface org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
extractOrCopy
public void extractOrCopy(boolean overwrite)
throws IOException
- Specified by:
extractOrCopy
in interface org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
- Throws:
IOException
Copyright © 2012 Atlassian. All Rights Reserved.