Improve logical backup.
[lgpl/argeo-commons.git] / org.argeo.maintenance / src / org / argeo / maintenance / internal / Activator.java
index 92534b25014761e70d587181783deaf02aaff0b5..ef40ab3a34e0c015a10540ad49bd7ac4c0ee4544 100644 (file)
@@ -13,15 +13,11 @@ 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) {
-                       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