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
This commit is contained in:
Matt Ward
2011-11-03 16:19:47 +00:00
parent 5228c5b01c
commit d41c381ac8

View File

@@ -93,8 +93,14 @@ public class DbToXML
} }
String contextPath = args[0]; String contextPath = args[0];
File outputFile = new File(args[1]); 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 dbToXML = new DbToXML(context, outputFile);
dbToXML.execute(); dbToXML.execute();
// Shutdown the Spring context
context.close();
} }
} }