summaryrefslogtreecommitdiffstats
path: root/java/sca/modules
diff options
context:
space:
mode:
authoredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2009-04-15 09:49:51 +0000
committeredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2009-04-15 09:49:51 +0000
commitf91b8cf613c4cdaf20a9bbf85efeb2824608d6ef (patch)
treea6966c4475ef3885df37f392748f4f4ce1443104 /java/sca/modules
parent94376722d438488d93fc325381267610697afd61 (diff)
Extended warning message reporting to include Composite name and Component name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@765099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java2
-rw-r--r--java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java
index c56541a273..c5f03b51c5 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java
@@ -184,7 +184,7 @@ public class ComponentReferenceEndpointReferenceBuilderImpl extends BaseBuilderI
// the presence of binding elements
if (reference.getBindings().size() > 0) {
warning(monitor, "ReferenceEndPointMixWithTarget",
- composite, reference.getName());
+ composite, composite.getName().toString(), component.getName(), reference.getName());
}
// Resolve targets specified on the component reference
diff --git a/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties b/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties
index 6aeda18aab..67328bc929 100644
--- a/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties
+++ b/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties
@@ -46,7 +46,7 @@ ComponentReferenceTargetNotFound = Component reference target not found, it migh
NoSCABindingAvailableForUnresolvedService = A local service cannot be found for reference {0} target {1} and there is no SCA binding available to represent the unresolved target
NoMatchingBinding = Component reference {0} does not have a binding which matches the bindings of service {1}
NoMatchingCallbackBinding = Component reference {0} does not have a callback binding which matches the callback bindings of service {1}
-ReferenceEndPointMixWithTarget = Reference {0} must not specify endpoints using both target attribute and with binding uri attribute
+ReferenceEndPointMixWithTarget = Composite {0} Component {1} Reference {2} must not specify endpoints using both target attribute and with binding uri attribute
PolicyRelatedException = Policy Related Exception occured due to : {0}
CompositeAlreadyIncluded = Composite {0} has already been included.
ComponentReferenceMoreWire = Component reference {0} has more than one wires