maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1721958 - in /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src: main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java site/apt/index.apt.vm
Date Mon, 28 Dec 2015 17:47:14 GMT
Author: hboutemy
Date: Mon Dec 28 17:47:14 2015
New Revision: 1721958

URL: http://svn.apache.org/viewvc?rev=1721958&view=rev
Log:
[DOXIASITETOOLS-101] Added ISO date format to site rendering context

Modified:
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/site/apt/index.apt.vm

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java?rev=1721958&r1=1721957&r2=1721958&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
Mon Dec 28 17:47:14 2015
@@ -481,6 +481,8 @@ public class DefaultSiteRenderer
         }
         context.put( "dateFormat", dateFormat );
 
+        context.put( "isoDateFormat", new SimpleDateFormat( "yyyy-MM-dd" ) );
+
         // doxiaSiteRendererVersion
         InputStream inputStream = this.getClass().getResourceAsStream( "/META-INF/"
             + "maven/org.apache.maven.doxia/doxia-site-renderer/pom.properties" );

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/site/apt/index.apt.vm
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/site/apt/index.apt.vm?rev=1721958&r1=1721957&r2=1721958&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/site/apt/index.apt.vm (original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/site/apt/index.apt.vm Mon Dec
28 17:47:14 2015
@@ -71,6 +71,8 @@ Doxia Site Tools - Site Renderer
 *---------------------------------+----------------------+-------------------------------+
 | <<<doxiaSiteRendererVersion>>>  | <<<String>>>    
    | The version of Doxia Site Renderer in use |
 *---------------------------------+----------------------+-------------------------------+
+| <<<isoDateFormat>>>             | <<<DateFormat>>>
    | An instance of the ISO-8601 date format, ie "yyyy-MM-dd" |
+*---------------------------------+----------------------+-------------------------------+
 | <<<locale>>>                    | <<<Locale>>>    
    | The locale for the document being rendered |
 *---------------------------------+----------------------+-------------------------------+
 | <<<publishDate>>>               | <<<Date>>>      
    | An optional hardcoded publish date that has been set programmatically |



Mime
View raw message