From 0237cb27c7dad8df026db3342b442d7c2e0c573c Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Tue, 18 Sep 2007 16:01:50 +0000 Subject: [PATCH] Fix main entry point for the interpreters git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/web/config/ConfigAdminInterpreter.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/web/config/ConfigAdminInterpreter.java b/source/java/org/alfresco/web/config/ConfigAdminInterpreter.java index f8ad9df415..90e1bd1bb9 100755 --- a/source/java/org/alfresco/web/config/ConfigAdminInterpreter.java +++ b/source/java/org/alfresco/web/config/ConfigAdminInterpreter.java @@ -41,8 +41,10 @@ import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.namespace.QName; import org.alfresco.service.transaction.TransactionService; +import org.alfresco.util.ApplicationContextHelper; import org.alfresco.util.ParameterCheck; import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.core.io.ClassPathResource; /** @@ -64,13 +66,13 @@ public class ConfigAdminInterpreter extends BaseInterpreter this.transactionService = transactionService; } - /** - * + * Main entry point. */ - public static BaseInterpreter getConsoleBean(ApplicationContext context) + public static void main(String[] args) { - return (ConfigAdminInterpreter)context.getBean("webClientConfigAdminInterpreter"); + ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"classpath:alfresco/application-context.xml","classpath:alfresco/web-client-application-context.xml"}); + runMain(context, "webClientConfigAdminInterpreter"); } protected boolean hasAuthority(String username)