diff options
author | Andrew M Finkbeiner | 2012-05-25 19:43:41 +0000 |
---|---|---|
committer | kwilk | 2012-05-25 19:43:41 +0000 |
commit | 23af8f5cf60ce10f6c4044c675fd5112f19ad9e2 (patch) | |
tree | c814fcf0e37f5e01a3f3d74e0dcb5ddc46e76e74 /plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader | |
parent | fb54985d44c5742e90c4636a0585108bb4cdaf21 (diff) | |
download | org.eclipse.osee-23af8f5cf60ce10f6c4044c675fd5112f19ad9e2.tar.gz org.eclipse.osee-23af8f5cf60ce10f6c4044c675fd5112f19ad9e2.tar.xz org.eclipse.osee-23af8f5cf60ce10f6c4044c675fd5112f19ad9e2.zip |
bug[ats_QFNJA]: Get a filepath without URL encoding for copy
Diffstat (limited to 'plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader')
-rw-r--r-- | plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader/WorkspaceBundleLoadCoordinator.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader/WorkspaceBundleLoadCoordinator.java b/plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader/WorkspaceBundleLoadCoordinator.java index 1cb7d87b0a3..89f5e5df552 100644 --- a/plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader/WorkspaceBundleLoadCoordinator.java +++ b/plugins/org.eclipse.osee.framework.ui.workspacebundleloader/src/org/eclipse/osee/framework/ui/workspacebundleloader/WorkspaceBundleLoadCoordinator.java @@ -5,6 +5,7 @@ import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.net.MalformedURLException; +import java.net.URISyntaxException; import java.net.URL; import java.nio.channels.FileChannel; import java.util.ArrayList; @@ -114,7 +115,7 @@ public class WorkspaceBundleLoadCoordinator { try { info.uninstall(); } catch (BundleException e) { - e.printStackTrace(); + OseeLog.log(WorkspaceBundleLoadCoordinator.class, Level.WARNING, e); } } if(wiring != null){ @@ -162,7 +163,8 @@ public class WorkspaceBundleLoadCoordinator { FileChannel in = null; try { out = new FileOutputStream(newFile).getChannel(); - in = new FileInputStream(new File(info.getSystemLocation().getFile())).getChannel(); + String path = info.getSystemLocation().toURI().getPath(); + in = new FileInputStream(new File(path)).getChannel(); long position = 0; long size = in.size(); @@ -172,7 +174,9 @@ public class WorkspaceBundleLoadCoordinator { BundleInfoLite newBundle = new BundleInfoLite(newFile.toURI().toURL()); managedArea.add(newBundle); } catch (IOException e) { - e.printStackTrace(); + OseeLog.log(WorkspaceBundleLoadCoordinator.class, Level.WARNING, e); + } catch (URISyntaxException e) { + OseeLog.log(WorkspaceBundleLoadCoordinator.class, Level.WARNING, e); } finally { try { if(in != null){ @@ -223,9 +227,9 @@ public class WorkspaceBundleLoadCoordinator { } } } catch (MalformedURLException e) { - e.printStackTrace(); + OseeLog.log(WorkspaceBundleLoadCoordinator.class, Level.WARNING, e); } catch (IOException e) { - e.printStackTrace(); + OseeLog.log(WorkspaceBundleLoadCoordinator.class, Level.WARNING, e); } } bundlesToCheck.clear(); @@ -263,7 +267,7 @@ public class WorkspaceBundleLoadCoordinator { } } catch (BundleException e) { - e.printStackTrace(); + OseeLog.log(WorkspaceBundleLoadCoordinator.class, Level.WARNING, e); } } } |