You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ed...@apache.org on 2009/04/15 11:49:52 UTC

svn commit: r765099 - in /tuscany/java/sca/modules/assembly/src/main: java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java resources/assembly-validation-messages.properties

Author: edwardsmj
Date: Wed Apr 15 09:49:51 2009
New Revision: 765099

URL: http://svn.apache.org/viewvc?rev=765099&view=rev
Log:
Extended warning message reporting to include Composite name and Component name

Modified:
    tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java
    tuscany/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties

Modified: tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java?rev=765099&r1=765098&r2=765099&view=diff
==============================================================================
--- tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java (original)
+++ tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java Wed Apr 15 09:49:51 2009
@@ -184,7 +184,7 @@
             // 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

Modified: tuscany/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties?rev=765099&r1=765098&r2=765099&view=diff
==============================================================================
--- tuscany/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties (original)
+++ tuscany/java/sca/modules/assembly/src/main/resources/assembly-validation-messages.properties Wed Apr 15 09:49:51 2009
@@ -46,7 +46,7 @@
 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