You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by ni...@apache.org on 2004/08/05 22:15:29 UTC
svn commit: rev 35755 - incubator/depot/trunk/version/src/templates
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;}