mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AVM now configures itself via Spring. Also adjusted jndi-client and catalina-virtual
to be semi-not-broken. The current limitation is that you've got to start tomcat from $TOMCAT_HOME for things to work (fix soon). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,7 @@ import java.io.OutputStream;
|
||||
import org.alfresco.repo.avm.AVMException;
|
||||
import org.alfresco.repo.avm.AVMService;
|
||||
import org.alfresco.repo.avm.AVMServiceImpl;
|
||||
import org.alfresco.repo.avm.hibernate.HibernateHelper;
|
||||
|
||||
/**
|
||||
* This takes a filesystem directory path and a repository path and name
|
||||
@@ -36,31 +37,18 @@ public class BulkLoader
|
||||
{
|
||||
private AVMService fService;
|
||||
|
||||
/**
|
||||
* Bulk load from a filesystem directory.
|
||||
* Syntax : BulkLoad storagepath (new|old) fspath reppath name
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
if (args.length != 4)
|
||||
{
|
||||
System.err.println("Syntax: BulkLoad storagepath (new|old) fspath reppath");
|
||||
System.exit(1);
|
||||
}
|
||||
AVMServiceImpl service = new AVMServiceImpl();
|
||||
service.setStorage(args[0]);
|
||||
service.init(args[1].equals("new"));
|
||||
BulkLoader loader = new BulkLoader(service);
|
||||
loader.recursiveLoad(args[2], args[3]);
|
||||
service.createSnapshot("main");
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new one.
|
||||
*/
|
||||
public BulkLoader()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the AVMService.
|
||||
* @param service
|
||||
*/
|
||||
public BulkLoader(AVMService service)
|
||||
public void setAvmService(AVMService service)
|
||||
{
|
||||
fService = service;
|
||||
}
|
||||
|
Reference in New Issue
Block a user