Author: psteitz
Date: Sun Sep 11 12:57:49 2005
New Revision: 280172

URL: http://svn.apache.org/viewcvs?rev=280172&view=rev
Log:
Added format definition for build.date.

Modified:
    jakarta/commons/proper/commons-build/trunk/commons-site.jsl

Modified: jakarta/commons/proper/commons-build/trunk/commons-site.jsl
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/commons-site.jsl?rev=280172&r1=280171&r2=280172&view=diff
==============================================================================
--- jakarta/commons/proper/commons-build/trunk/commons-site.jsl (original)
+++ jakarta/commons/proper/commons-build/trunk/commons-site.jsl Sun Sep 11 
12:57:49 2005
@@ -34,6 +34,14 @@
 
     <!-- Stores location for publish date / version -->
     <j:set var="date">${maven.xdoc.date}</j:set>
+
+    <!-- Format the build date depending the current locale if no pattern is 
defined -->
+    <j:if test="${currentLocale.equals(defaultLocale)}">
+      <j:if test="${now == null}">
+        <j:useBean var="now" class="java.util.Date"/>
+      </j:if>
+      <fmt:formatDate value="${now}" type="date" dateStyle="medium" 
var="build.date"/>
+    </j:if>
       
        <j:setProperties 
                object="${navbean}"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to