diff options
Diffstat (limited to 'branches/sca-java-1.x/modules/contribution-impl/src/main/java/org')
-rw-r--r-- | branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/FolderContributionProcessor.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/FolderContributionProcessor.java b/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/FolderContributionProcessor.java index ab056e3214..9bd4d23680 100644 --- a/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/FolderContributionProcessor.java +++ b/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/FolderContributionProcessor.java @@ -89,7 +89,11 @@ public class FolderContributionProcessor implements PackageProcessor { if (uri.endsWith("/")) { uri = uri.substring(0, uri.length() - 1); } - fileList.add(URI.create(uri)); + try { + fileList.add(new URI(null, uri, null)); + } catch (URISyntaxException e) { + throw new IllegalArgumentException("Invalid artifact uri:" + uri); + } // Allow privileged access to list files. Requires FilePermission in security // policy. |