From 9116330a10ecc13064b392aaf7a6217573bdad3c Mon Sep 17 00:00:00 2001 From: Andrew Hind Date: Tue, 27 May 2008 13:42:17 +0000 Subject: [PATCH] Build fix - remove merge issues that causes a double bootstrap - move bootstrap bean into the correct context git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9265 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/bootstrap-context.xml | 14 ++++++++++++++ .../alfresco/model-specific-services-context.xml | 14 -------------- .../repo/domain/schema/SchemaBootstrap.java | 8 ++++---- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config/alfresco/bootstrap-context.xml b/config/alfresco/bootstrap-context.xml index 3efb52c9d2..22fa823d6b 100644 --- a/config/alfresco/bootstrap-context.xml +++ b/config/alfresco/bootstrap-context.xml @@ -541,4 +541,18 @@ + + + + + + + + + + + ${spaces.store} + /${spaces.company_home.childname} + + diff --git a/config/alfresco/model-specific-services-context.xml b/config/alfresco/model-specific-services-context.xml index 8f03465bd8..0c831de690 100644 --- a/config/alfresco/model-specific-services-context.xml +++ b/config/alfresco/model-specific-services-context.xml @@ -112,19 +112,5 @@ - - - - - - - - - - - - ${spaces.store} - /${spaces.company_home.childname} - diff --git a/source/java/org/alfresco/repo/domain/schema/SchemaBootstrap.java b/source/java/org/alfresco/repo/domain/schema/SchemaBootstrap.java index 52563c123a..a6b80530be 100644 --- a/source/java/org/alfresco/repo/domain/schema/SchemaBootstrap.java +++ b/source/java/org/alfresco/repo/domain/schema/SchemaBootstrap.java @@ -989,11 +989,13 @@ public class SchemaBootstrap extends AbstractLifecycleBean // thrown. If it is thrown, the the update needs to be rerun as it will probably generate no SQL // statements the second time around. boolean updatedSchema = false; + boolean createdSchema = false; + for (int i = 0; i < schemaUpdateLockRetryCount; i++) { try { - updateSchema(cfg, session, connection); + createdSchema = updateSchema(cfg, session, connection); updatedSchema = true; break; } @@ -1009,8 +1011,6 @@ public class SchemaBootstrap extends AbstractLifecycleBean throw new AlfrescoRuntimeException(ERR_PREVIOUS_FAILED_BOOTSTRAP); } - boolean create = updateSchema(cfg, session, connection); - // Copy the executed statements to the output file File schemaOutputFile = null; if (schemaOuputFilename != null) @@ -1035,7 +1035,7 @@ public class SchemaBootstrap extends AbstractLifecycleBean LogUtil.info(logger, MSG_ALL_STATEMENTS, schemaOutputFile.getPath()); } - if (! create) + if (! createdSchema) { // verify that all patches have been applied correctly checkSchemaPatchScripts(cfg, session, connection, validateUpdateScriptPatches, false); // check scripts