diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-09 06:24:32 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-09 06:24:32 +0000 |
commit | 448d22fec77865f5bfa9a1cd9b4ae041b382b801 (patch) | |
tree | a8163c9d4e092054a05519a361cf8b7acfa99fad /branches/sca-java-1.x/modules/contribution-impl/src/main | |
parent | ca8e86acb460069101d2aa95ee299cc1800adc77 (diff) |
TUSCANY-2862 - Further changes to handled folder contributions that have artifacts with space in the name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@763525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/contribution-impl/src/main')
-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. |