mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Repaired stand alone version of the interpreter. Make sure .../repository/config is in
the classpath. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4436 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -73,8 +73,13 @@ public class AVMInterpreter
|
|||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
FileSystemXmlApplicationContext context =
|
FileSystemXmlApplicationContext context =
|
||||||
new FileSystemXmlApplicationContext("config/alfresco/avm-console-context.xml");
|
new FileSystemXmlApplicationContext("config/alfresco/application-context.xml");
|
||||||
AVMInterpreter console = (AVMInterpreter)context.getBean("interactiveConsole");
|
AVMInterpreter console = new AVMInterpreter();
|
||||||
|
console.setAvmService((AVMService)context.getBean("AVMService"));
|
||||||
|
console.setAvmSyncService((AVMSyncService)context.getBean("AVMSyncService"));
|
||||||
|
BulkLoader loader = new BulkLoader();
|
||||||
|
loader.setAvmService((AVMService)context.getBean("AVMService"));
|
||||||
|
console.setBulkLoader(loader);
|
||||||
console.rep();
|
console.rep();
|
||||||
context.close();
|
context.close();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user