Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Frost2011-05-19 10:05:51 -0400
committerChristopher Frost2011-05-19 10:05:51 -0400
commit6a471568c99f12829f687d6b897187e5c4814dc2 (patch)
tree1befcc0f6e0f8c8dadce25476204cf7bd13e189f
parent33b30b6dbe4781601282af4a95a7cfe20619c86b (diff)
downloadorg.eclipse.virgo.kernel-6a471568c99f12829f687d6b897187e5c4814dc2.tar.gz
org.eclipse.virgo.kernel-6a471568c99f12829f687d6b897187e5c4814dc2.tar.xz
org.eclipse.virgo.kernel-6a471568c99f12829f687d6b897187e5c4814dc2.zip
Exception handling required
-rw-r--r--org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/model/internal/StandardRuntimeArtifactModel.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/model/internal/StandardRuntimeArtifactModel.java b/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/model/internal/StandardRuntimeArtifactModel.java
index 5b95a5a1..b3d44644 100644
--- a/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/model/internal/StandardRuntimeArtifactModel.java
+++ b/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/model/internal/StandardRuntimeArtifactModel.java
@@ -14,6 +14,7 @@ package org.eclipse.virgo.kernel.deployer.model.internal;
import java.io.File;
import java.io.IOException;
import java.net.URI;
+import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
@@ -208,9 +209,9 @@ final class StandardRuntimeArtifactModel implements RuntimeArtifactModel {
File file = new File(uri);
try {
return new URI(file.getCanonicalPath());
- } catch (IOException e) {
- return new URI(file.getAbsolutePath());
- }
+ } catch (Exception e) {
+ return uri;
+ }
} else {
return uri;
}

Back to the top