| | |
| | | private Installation installation; |
| | | private File backupDir; |
| | | private UserInteraction ui; |
| | | private boolean isSchemaCustomized; |
| | | |
| | | /** |
| | | * Creates a new parameterized instance. |
| | |
| | | * the diff operation |
| | | */ |
| | | public void calculateSchemaCustomizations() throws ApplicationException { |
| | | isSchemaCustomized = false; |
| | | if (installation.getStatus().schemaHasBeenModified()) { |
| | | LOG.log(Level.INFO, "Schema contains customizations that will " + |
| | | "be migrated"); |
| | |
| | | ldifDiff(installation.getBaseSchemaFile(), |
| | | installation.getSchemaConcatFile(), |
| | | getCustomSchemaDiffFile()); |
| | | isSchemaCustomized = true; |
| | | } catch (ApplicationException ae) { |
| | | throw ae; |
| | | } catch (Exception e) { |
| | |
| | | * @return boolean where true indicates schema customization |
| | | */ |
| | | public boolean isSchemaCustomized() { |
| | | return installation.getStatus().schemaHasBeenModified(); |
| | | return isSchemaCustomized; |
| | | } |
| | | |
| | | /** |