maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r1054986 - /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
Date Tue, 04 Jan 2011 11:52:43 GMT
Author: ltheussl
Date: Tue Jan  4 11:52:42 2011
New Revision: 1054986

URL: http://svn.apache.org/viewvc?rev=1054986&view=rev
Log:
[DOXIASITETOOLS-44] Documents generated from velocity templates are never validated

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

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=1054986&r1=1054985&r2=1054986&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
Tue Jan  4 11:52:42 2011
@@ -375,6 +375,10 @@ public class DefaultSiteRenderer
                     velocity.getEngine().mergeTemplate( resource, context.getInputEncoding(),
vc, sw );
 
                     reader = new StringReader( sw.toString() );
+                    if ( parser.getType() == Parser.XML_TYPE && context.isValidate()
)
+                    {
+                        reader = validate( reader, resource );
+                    }
                 }
                 catch ( Exception e )
                 {



Mime
View raw message