From 448d22fec77865f5bfa9a1cd9b4ae041b382b801 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 9 Apr 2009 06:24:32 +0000 Subject: 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 --- .../contribution/processor/impl/FolderContributionProcessor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'branches/sca-java-1.x/modules/contribution-impl/src/main/java/org') 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. -- cgit v1.2.3