incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 35755 - incubator/depot/trunk/version/src/templates
Date Thu, 05 Aug 2004 22:15:29 GMT
Author: nickchalko
Date: Thu Aug  5 15:15:28 2004
New Revision: 35755

Modified:
   incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet
Log:
Improve format.

Modified: incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet
==============================================================================
--- incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet	(original)
+++ incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet	Thu Aug  5
15:15:28 2004
@@ -101,10 +101,17 @@
 	 */
 	public String getDefaultVersion() {return "<%=marker.getDefaultVersion()%>";}	
 
-
-	public Map getAttributes () {
-	    return attributes;
-	}
+	/**
+	 * Get the Unmodifiable map of attributes. 	<%
+	for (Iterator i = marker.getAttributes().entrySet().iterator(); i.hasNext();) {
+         Map.Entry entry = (Map.Entry) i.next();
+         // TODO need to escape key and value.
+         %>
+     * <%=getValueFrom(entry.getKey())%> = <%=entry.getValue()%><%
+    }%>
+	 * @return unmodifiable Map of attributes.
+	 */
+	public Map getAttributes () {return attributes;}
 
 
 	

Mime
View raw message