diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-03-01 13:58:17 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-03-01 13:58:17 +0000 |
commit | 1145f9016edab7341e06afef3a815027041a61c1 (patch) | |
tree | 11481cb90f31de4510107b868728a23928b4d194 /sca-java-2.x/trunk/modules/contribution/src/main/java/org | |
parent | 17e573358db8a4a83247037b957db32127bdd00a (diff) |
TUSCANY-4020 - move a few more hardcoded message strings into properties files
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1295564 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/contribution/src/main/java/org')
-rw-r--r-- | sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/ContributionContentProcessor.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/ContributionContentProcessor.java b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/ContributionContentProcessor.java index 670348ffce..58abc98d21 100644 --- a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/ContributionContentProcessor.java +++ b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/ContributionContentProcessor.java @@ -269,10 +269,14 @@ public class ContributionContentProcessor implements ExtendedURLArtifactProcesso if (packageName.equals(artifact.getURI().replace("/", "."))) available = true; } - if (!available) - throw new ContributionResolveException("[JCI100007] A Java package " + packageName - + " that is specified on an export " - + "element MUST be contained within the contribution containing the export element."); + if (!available) { + String message = context.getMonitor().getMessageString(ContributionContentProcessor.class.getName(), + "contribution-xml-validation-messages", + "ExportedPackageNotFound"); + message = message.replace("{0}", packageName); + + throw new ContributionResolveException(message); + } } } |