[Swift-commit] r2509 - trunk/src/org/griphyn/vdl/karajan/lib

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Feb 6 20:57:41 CST 2009


Author: hategan
Date: 2009-02-06 20:57:40 -0600 (Fri, 06 Feb 2009)
New Revision: 2509

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/TCProfile.java
Log:
add tr name as an attribute

Modified: trunk/src/org/griphyn/vdl/karajan/lib/TCProfile.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/TCProfile.java	2009-02-07 02:54:27 UTC (rev 2508)
+++ trunk/src/org/griphyn/vdl/karajan/lib/TCProfile.java	2009-02-07 02:57:40 UTC (rev 2509)
@@ -67,6 +67,7 @@
 
 			attrs = attributesFromTC(tce, attrs);
 		}
+		attrs = addAttribute(attrs, "tr", tr);
 		addAttributes(named, attrs);
 		return null;
 	}
@@ -116,6 +117,14 @@
 	    }
 	    named.add(GridExec.A_ATTRIBUTES, attrs);
 	}
+	
+	private Map addAttribute(Map attrs, String key, Object value) {
+	    if (attrs == null) {
+	        attrs = new HashMap();
+	    }
+	    attrs.put(key, value);
+	    return attrs;
+	}
 
 	private Map attributesFromTC(TransformationCatalogEntry tce, Map attrs) {
 		List l = tce.getProfiles(Profile.GLOBUS);




More information about the Swift-commit mailing list