tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r662636 - /incubator/tuscany/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java
Date Tue, 03 Jun 2008 04:19:57 GMT
Author: lresende
Date: Mon Jun  2 21:19:57 2008
New Revision: 662636

URL: http://svn.apache.org/viewvc?rev=662636&view=rev
Log:
TUSCANY-2362 - Applying patch from Ram

Modified:
    incubator/tuscany/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java

Modified: incubator/tuscany/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java?rev=662636&r1=662635&r2=662636&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java
(original)
+++ incubator/tuscany/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java
Mon Jun  2 21:19:57 2008
@@ -51,7 +51,7 @@
  */
 public class WidgetImplementationProcessor implements StAXArtifactProcessor<WidgetImplementation>
{
     private static final QName IMPLEMENTATION_WIDGET = new QName(Constants.SCA10_TUSCANY_NS,
"implementation.widget");
-    //private static final String MSG_LOCATION_MISSING = "Reading implementation.widget -
location attribute missing";
+    private static final String MSG_LOCATION_MISSING = "Reading implementation.widget - location
attribute missing";
     
     private AssemblyFactory assemblyFactory;
     private ContributionFactory contributionFactory;
@@ -119,7 +119,7 @@
             implementation.setUnresolved(true);
         } else {
             error("LocationAttributeMissing", reader);
-            //throw new ContributionReadException(MSG_LOCATION_MISSING);
+            throw new ContributionReadException(MSG_LOCATION_MISSING);
         }
 
         // Skip to end element
@@ -152,6 +152,9 @@
             	error("ContributionResolveException", resolver, ce);
                 //throw ce;
             }
+        } else {
+            error("CouldNotResolveLocation", resolver, implementation.getLocation());
+            throw new ContributionResolveException("Could not resolve implementation.widget
location: " + implementation.getLocation());            
         }
     }
 



Mime
View raw message