changeset 28:65812348191d

PR667: Ika repsoitories can't accept relative paths. * plugins/borg/IcedRobotCloner.java: --dest= can now accept relative paths.
author Xerxes R?nby <xerxes@zafena.se>
date Mon, 11 Apr 2011 22:16:19 +0200
parents 17afcf8034a6
children 3b0d6002605a
files src/main/java/org/icedrobot/ika/plugins/borg/IcedRobotCloner.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/icedrobot/ika/plugins/borg/IcedRobotCloner.java	Mon Apr 11 01:50:51 2011 +0200
+++ b/src/main/java/org/icedrobot/ika/plugins/borg/IcedRobotCloner.java	Mon Apr 11 22:16:19 2011 +0200
@@ -70,6 +70,13 @@
 
             if (options.has("dest")) {
                 destinationDir = (String) options.valueOf("dest");
+                File dest = new File(destinationDir);
+
+                try {
+                    destinationDir = dest.getCanonicalPath();
+                } catch (IOException ex) {
+                    throw new IkaPluginException(ex.getMessage(), ex);
+                }
             }
 
             if (options.has("icedrobot")) {