| | |
| | | import static org.opends.server.tools.upgrade.FileManager.copy; |
| | | import static org.opends.server.tools.upgrade.Installation.CURRENT_CONFIG_FILE_NAME; |
| | | import static org.opends.server.tools.upgrade.UpgradeUtils.*; |
| | | import static org.opends.server.util.StaticUtils.isClassAvailable; |
| | | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | |
| | | }; |
| | | } |
| | | |
| | | static boolean isOEMVersion() |
| | | { |
| | | return !isClassAvailable("org.opends.server.backends.jeb.JEBackend"); |
| | | } |
| | | |
| | | private static boolean isClassAvailable(final String className) |
| | | { |
| | | try |
| | | { |
| | | Class.forName(className); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** This inner classes causes JE to be lazily linked and prevents runtime errors if JE is not in the classpath. */ |
| | | static final class JEHelper { |
| | | private static ClientException clientException(final File backendDirectory, final DatabaseException e) { |