incubator-airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1327272 - /incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
Date Tue, 17 Apr 2012 20:25:05 GMT
Author: lahiru
Date: Tue Apr 17 20:25:05 2012
New Revision: 1327272

URL: http://svn.apache.org/viewvc?rev=1327272&view=rev
Log:
we remove the undefined AppDescriptors.

Modified:
    incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java

Modified: incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java?rev=1327272&r1=1327271&r2=1327272&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
(original)
+++ incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
Tue Apr 17 20:25:05 2012
@@ -482,10 +482,10 @@ public class AiravataJCRRegistry extends
             List<Node> childNodes = getChildNodes(serviceNode);
             for (Node hostNode:childNodes) {
 				HostDescription hostDescriptor = getHostDescription(hostNode.getName());
-				result.put(hostDescriptor, new ArrayList<ApplicationDeploymentDescription>());
 	            List<Node> childNodes2 = getChildNodes(hostNode);
-	            for (Node app:childNodes2) {
-					Property prop = app.getProperty(XML_PROPERTY_NAME);
+                for (Node app:childNodes2) {
+                    result.put(hostDescriptor, new ArrayList<ApplicationDeploymentDescription>());
+                    Property prop = app.getProperty(XML_PROPERTY_NAME);
 					result.get(hostDescriptor).add(ApplicationDeploymentDescription.fromXML(prop.getString()));
 				}
 			}



Mime
View raw message