Improve logical backup.
[lgpl/argeo-commons.git] / org.argeo.maintenance / src / org / argeo / maintenance / internal / Activator.java
index be001a3af66b37b41a2b8d9bfe04b93d31943cf8..ef40ab3a34e0c015a10540ad49bd7ac4c0ee4544 100644 (file)
@@ -13,22 +13,15 @@ public class Activator implements BundleActivator {
 
        @Override
        public void start(BundleContext context) throws Exception {
-               try {
-                       Repository repository = context.getService(context.getServiceReference(Repository.class));
-                       Path basePath = Paths.get(System.getProperty("user.dir"), "backup");
-                       LogicalBackup backup = new LogicalBackup(context, repository, basePath);
-                       backup.perform();
-               } catch (Exception e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
-               }
-
+               // Start backup
+               Repository repository = context.getService(context.getServiceReference(Repository.class));
+               Path basePath = Paths.get(System.getProperty("user.dir"), "backup");
+               LogicalBackup backup = new LogicalBackup(context, repository, basePath);
+               backup.run();
        }
 
        @Override
        public void stop(BundleContext context) throws Exception {
-               // TODO Auto-generated method stub
-
        }
 
 }