From f91b8cf613c4cdaf20a9bbf85efeb2824608d6ef Mon Sep 17 00:00:00 2001 From: edwardsmj Date: Wed, 15 Apr 2009 09:49:51 +0000 Subject: 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 --- .../builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java | 2 +- .../assembly/src/main/resources/assembly-validation-messages.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'java/sca/modules') 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 -- cgit v1.2.3