From d41c381ac8d45847a98b73645cdc701f98c5f2ce Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Thu, 3 Nov 2011 16:19:47 +0000 Subject: [PATCH] ALF-11255: schema dumper bugfix: added app context shutdown call. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31694 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/util/schemacomp/DbToXML.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/util/schemacomp/DbToXML.java b/source/java/org/alfresco/util/schemacomp/DbToXML.java index 4bbdc30070..f801cbcda0 100644 --- a/source/java/org/alfresco/util/schemacomp/DbToXML.java +++ b/source/java/org/alfresco/util/schemacomp/DbToXML.java @@ -93,8 +93,14 @@ public class DbToXML } String contextPath = args[0]; File outputFile = new File(args[1]); - ApplicationContext context = new FileSystemXmlApplicationContext(contextPath); + + // Create the Spring context + FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(contextPath); DbToXML dbToXML = new DbToXML(context, outputFile); + dbToXML.execute(); + + // Shutdown the Spring context + context.close(); } }