maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r980165 [29/30] - in /websites/production/maven-doxia/content/doxia-sitetools-archives/doxia-sitetools-LATEST: ./ apidocs/ apidocs/org/apache/maven/doxia/docrenderer/ apidocs/org/apache/maven/doxia/docrenderer/class-use/ apidocs/org/apache/...
Date Thu, 11 Feb 2016 22:36:48 GMT
Modified: websites/production/maven-doxia/content/doxia-sitetools-archives/doxia-sitetools-LATEST/xref/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.html
==============================================================================
--- websites/production/maven-doxia/content/doxia-sitetools-archives/doxia-sitetools-LATEST/xref/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.html (original)
+++ websites/production/maven-doxia/content/doxia-sitetools-archives/doxia-sitetools-LATEST/xref/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.html Thu Feb 11 22:36:31 2016
@@ -125,7 +125,7 @@
 <a class="jxr_linenumber" name="L117" href="#L117">117</a> <em class="jxr_javadoccomment"> *</em>
 <a class="jxr_linenumber" name="L118" href="#L118">118</a> <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:evenisse@codehaus.org" target="alexandria_uri">mailto:evenisse@codehaus.org</a>"&gt;Emmanuel Venisse&lt;/a&gt;</em>
 <a class="jxr_linenumber" name="L119" href="#L119">119</a> <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:vincent.siveton@gmail.com" target="alexandria_uri">mailto:vincent.siveton@gmail.com</a>"&gt;Vincent Siveton&lt;/a&gt;</em>
-<a class="jxr_linenumber" name="L120" href="#L120">120</a> <em class="jxr_javadoccomment"> * @version $Id: DefaultSiteRenderer.java 1729288 2016-02-08 22:55:55Z hboutemy $</em>
+<a class="jxr_linenumber" name="L120" href="#L120">120</a> <em class="jxr_javadoccomment"> * @version $Id: DefaultSiteRenderer.java 1729686 2016-02-10 18:38:24Z michaelo $</em>
 <a class="jxr_linenumber" name="L121" href="#L121">121</a> <em class="jxr_javadoccomment"> * @since 1.0</em>
 <a class="jxr_linenumber" name="L122" href="#L122">122</a> <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L123" href="#L123">123</a> @Component( role = Renderer.<strong class="jxr_keyword">class</strong> )
@@ -548,600 +548,598 @@
 <a class="jxr_linenumber" name="L540" href="#L540">540</a> 
 <a class="jxr_linenumber" name="L541" href="#L541">541</a>         context.put( <span class="jxr_string">"publishDate"</span>, siteRenderingContext.getPublishDate() );
 <a class="jxr_linenumber" name="L542" href="#L542">542</a> 
-<a class="jxr_linenumber" name="L543" href="#L543">543</a>         DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.DEFAULT, locale );
-<a class="jxr_linenumber" name="L544" href="#L544">544</a>         <a href="../../../../../org/apache/maven/doxia/site/decoration/PublishDate.html">PublishDate</a> publishDate = siteRenderingContext.getDecoration().getPublishDate();
-<a class="jxr_linenumber" name="L545" href="#L545">545</a>         <strong class="jxr_keyword">if</strong> ( publishDate != <strong class="jxr_keyword">null</strong> &amp;&amp; StringUtils.isNotBlank( publishDate.getFormat() ) )
-<a class="jxr_linenumber" name="L546" href="#L546">546</a>         {
-<a class="jxr_linenumber" name="L547" href="#L547">547</a>             dateFormat = <strong class="jxr_keyword">new</strong> SimpleDateFormat( publishDate.getFormat(), locale );
-<a class="jxr_linenumber" name="L548" href="#L548">548</a>         }
-<a class="jxr_linenumber" name="L549" href="#L549">549</a>         context.put( <span class="jxr_string">"dateFormat"</span>, dateFormat );
-<a class="jxr_linenumber" name="L550" href="#L550">550</a> 
-<a class="jxr_linenumber" name="L551" href="#L551">551</a>         <em class="jxr_comment">// doxiaSiteRendererVersion</em>
-<a class="jxr_linenumber" name="L552" href="#L552">552</a>         InputStream inputStream = <strong class="jxr_keyword">this</strong>.getClass().getResourceAsStream( <span class="jxr_string">"/META-INF/"</span>
-<a class="jxr_linenumber" name="L553" href="#L553">553</a>             + <span class="jxr_string">"maven/org.apache.maven.doxia/doxia-site-renderer/pom.properties"</span> );
-<a class="jxr_linenumber" name="L554" href="#L554">554</a>         Properties properties = PropertyUtils.loadProperties( inputStream );
-<a class="jxr_linenumber" name="L555" href="#L555">555</a>         <strong class="jxr_keyword">if</strong> ( inputStream == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L543" href="#L543">543</a>         <a href="../../../../../org/apache/maven/doxia/site/decoration/PublishDate.html">PublishDate</a> publishDate = siteRenderingContext.getDecoration().getPublishDate();
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>         DateFormat dateFormat = <strong class="jxr_keyword">new</strong> SimpleDateFormat( publishDate.getFormat(), locale );
+<a class="jxr_linenumber" name="L545" href="#L545">545</a>         context.put( <span class="jxr_string">"dateFormat"</span>, dateFormat );
+<a class="jxr_linenumber" name="L546" href="#L546">546</a> 
+<a class="jxr_linenumber" name="L547" href="#L547">547</a>         <em class="jxr_comment">// doxiaSiteRendererVersion</em>
+<a class="jxr_linenumber" name="L548" href="#L548">548</a>         InputStream inputStream = <strong class="jxr_keyword">this</strong>.getClass().getResourceAsStream( <span class="jxr_string">"/META-INF/"</span>
+<a class="jxr_linenumber" name="L549" href="#L549">549</a>             + <span class="jxr_string">"maven/org.apache.maven.doxia/doxia-site-renderer/pom.properties"</span> );
+<a class="jxr_linenumber" name="L550" href="#L550">550</a>         Properties properties = PropertyUtils.loadProperties( inputStream );
+<a class="jxr_linenumber" name="L551" href="#L551">551</a>         <strong class="jxr_keyword">if</strong> ( inputStream == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L552" href="#L552">552</a>         {
+<a class="jxr_linenumber" name="L553" href="#L553">553</a>             getLogger().debug( <span class="jxr_string">"pom.properties for doxia-site-renderer could not be found."</span> );
+<a class="jxr_linenumber" name="L554" href="#L554">554</a>         }
+<a class="jxr_linenumber" name="L555" href="#L555">555</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( properties == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="L556" href="#L556">556</a>         {
-<a class="jxr_linenumber" name="L557" href="#L557">557</a>             getLogger().debug( <span class="jxr_string">"pom.properties for doxia-site-renderer could not be found."</span> );
-<a class="jxr_linenumber" name="L558" href="#L558">558</a>         }
-<a class="jxr_linenumber" name="L559" href="#L559">559</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( properties == <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L560" href="#L560">560</a>         {
-<a class="jxr_linenumber" name="L561" href="#L561">561</a>             getLogger().debug( <span class="jxr_string">"Failed to load pom.properties, so doxiaVersion is not available"</span>
-<a class="jxr_linenumber" name="L562" href="#L562">562</a>                 + <span class="jxr_string">" in the Velocity context."</span> );
+<a class="jxr_linenumber" name="L557" href="#L557">557</a>             getLogger().debug( <span class="jxr_string">"Failed to load pom.properties, so doxiaVersion is not available"</span>
+<a class="jxr_linenumber" name="L558" href="#L558">558</a>                 + <span class="jxr_string">" in the Velocity context."</span> );
+<a class="jxr_linenumber" name="L559" href="#L559">559</a>         }
+<a class="jxr_linenumber" name="L560" href="#L560">560</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L561" href="#L561">561</a>         {
+<a class="jxr_linenumber" name="L562" href="#L562">562</a>             context.put( <span class="jxr_string">"doxiaSiteRendererVersion"</span>, properties.getProperty( <span class="jxr_string">"version"</span> ) );
 <a class="jxr_linenumber" name="L563" href="#L563">563</a>         }
-<a class="jxr_linenumber" name="L564" href="#L564">564</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L565" href="#L565">565</a>         {
-<a class="jxr_linenumber" name="L566" href="#L566">566</a>             context.put( <span class="jxr_string">"doxiaSiteRendererVersion"</span>, properties.getProperty( <span class="jxr_string">"version"</span> ) );
-<a class="jxr_linenumber" name="L567" href="#L567">567</a>         }
-<a class="jxr_linenumber" name="L568" href="#L568">568</a> 
-<a class="jxr_linenumber" name="L569" href="#L569">569</a>         <em class="jxr_comment">// Add user properties</em>
-<a class="jxr_linenumber" name="L570" href="#L570">570</a>         Map&lt;String, ?&gt; templateProperties = siteRenderingContext.getTemplateProperties();
-<a class="jxr_linenumber" name="L571" href="#L571">571</a> 
-<a class="jxr_linenumber" name="L572" href="#L572">572</a>         <strong class="jxr_keyword">if</strong> ( templateProperties != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L573" href="#L573">573</a>         {
-<a class="jxr_linenumber" name="L574" href="#L574">574</a>             <strong class="jxr_keyword">for</strong> ( Map.Entry&lt;String, ?&gt; entry : templateProperties.entrySet() )
-<a class="jxr_linenumber" name="L575" href="#L575">575</a>             {
-<a class="jxr_linenumber" name="L576" href="#L576">576</a>                 context.put( entry.getKey(), entry.getValue() );
-<a class="jxr_linenumber" name="L577" href="#L577">577</a>             }
-<a class="jxr_linenumber" name="L578" href="#L578">578</a>         }
+<a class="jxr_linenumber" name="L564" href="#L564">564</a> 
+<a class="jxr_linenumber" name="L565" href="#L565">565</a>         <em class="jxr_comment">// Add user properties</em>
+<a class="jxr_linenumber" name="L566" href="#L566">566</a>         Map&lt;String, ?&gt; templateProperties = siteRenderingContext.getTemplateProperties();
+<a class="jxr_linenumber" name="L567" href="#L567">567</a> 
+<a class="jxr_linenumber" name="L568" href="#L568">568</a>         <strong class="jxr_keyword">if</strong> ( templateProperties != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L569" href="#L569">569</a>         {
+<a class="jxr_linenumber" name="L570" href="#L570">570</a>             <strong class="jxr_keyword">for</strong> ( Map.Entry&lt;String, ?&gt; entry : templateProperties.entrySet() )
+<a class="jxr_linenumber" name="L571" href="#L571">571</a>             {
+<a class="jxr_linenumber" name="L572" href="#L572">572</a>                 context.put( entry.getKey(), entry.getValue() );
+<a class="jxr_linenumber" name="L573" href="#L573">573</a>             }
+<a class="jxr_linenumber" name="L574" href="#L574">574</a>         }
+<a class="jxr_linenumber" name="L575" href="#L575">575</a> 
+<a class="jxr_linenumber" name="L576" href="#L576">576</a>         <em class="jxr_comment">// ----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L577" href="#L577">577</a>         <em class="jxr_comment">// Tools</em>
+<a class="jxr_linenumber" name="L578" href="#L578">578</a>         <em class="jxr_comment">// ----------------------------------------------------------------------</em>
 <a class="jxr_linenumber" name="L579" href="#L579">579</a> 
-<a class="jxr_linenumber" name="L580" href="#L580">580</a>         <em class="jxr_comment">// ----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L581" href="#L581">581</a>         <em class="jxr_comment">// Tools</em>
-<a class="jxr_linenumber" name="L582" href="#L582">582</a>         <em class="jxr_comment">// ----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L580" href="#L580">580</a>         context.put( <span class="jxr_string">"PathTool"</span>, <strong class="jxr_keyword">new</strong> PathTool() );
+<a class="jxr_linenumber" name="L581" href="#L581">581</a> 
+<a class="jxr_linenumber" name="L582" href="#L582">582</a>         context.put( <span class="jxr_string">"FileUtils"</span>, <strong class="jxr_keyword">new</strong> FileUtils() );
 <a class="jxr_linenumber" name="L583" href="#L583">583</a> 
-<a class="jxr_linenumber" name="L584" href="#L584">584</a>         context.put( <span class="jxr_string">"PathTool"</span>, <strong class="jxr_keyword">new</strong> PathTool() );
+<a class="jxr_linenumber" name="L584" href="#L584">584</a>         context.put( <span class="jxr_string">"StringUtils"</span>, <strong class="jxr_keyword">new</strong> StringUtils() );
 <a class="jxr_linenumber" name="L585" href="#L585">585</a> 
-<a class="jxr_linenumber" name="L586" href="#L586">586</a>         context.put( <span class="jxr_string">"FileUtils"</span>, <strong class="jxr_keyword">new</strong> FileUtils() );
+<a class="jxr_linenumber" name="L586" href="#L586">586</a>         context.put( <span class="jxr_string">"i18n"</span>, i18n );
 <a class="jxr_linenumber" name="L587" href="#L587">587</a> 
-<a class="jxr_linenumber" name="L588" href="#L588">588</a>         context.put( <span class="jxr_string">"StringUtils"</span>, <strong class="jxr_keyword">new</strong> StringUtils() );
-<a class="jxr_linenumber" name="L589" href="#L589">589</a> 
-<a class="jxr_linenumber" name="L590" href="#L590">590</a>         context.put( <span class="jxr_string">"i18n"</span>, i18n );
+<a class="jxr_linenumber" name="L588" href="#L588">588</a>         context.put( <span class="jxr_string">"plexus"</span>, plexus );
+<a class="jxr_linenumber" name="L589" href="#L589">589</a>         <strong class="jxr_keyword">return</strong> context;
+<a class="jxr_linenumber" name="L590" href="#L590">590</a>     }
 <a class="jxr_linenumber" name="L591" href="#L591">591</a> 
-<a class="jxr_linenumber" name="L592" href="#L592">592</a>         context.put( <span class="jxr_string">"plexus"</span>, plexus );
-<a class="jxr_linenumber" name="L593" href="#L593">593</a>         <strong class="jxr_keyword">return</strong> context;
-<a class="jxr_linenumber" name="L594" href="#L594">594</a>     }
-<a class="jxr_linenumber" name="L595" href="#L595">595</a> 
-<a class="jxr_linenumber" name="L596" href="#L596">596</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L597" href="#L597">597</a> <em class="jxr_javadoccomment">     * Create a Velocity Context for the site template decorating the document. In addition to all the informations</em>
-<a class="jxr_linenumber" name="L598" href="#L598">598</a> <em class="jxr_javadoccomment">     * from the document, this context contains data gathered in {@link SiteRendererSink} during document rendering.</em>
-<a class="jxr_linenumber" name="L599" href="#L599">599</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L600" href="#L600">600</a> <em class="jxr_javadoccomment">     * @param siteRendererSink the site renderer sink for the document</em>
-<a class="jxr_linenumber" name="L601" href="#L601">601</a> <em class="jxr_javadoccomment">     * @param siteRenderingContext the site rendering context</em>
-<a class="jxr_linenumber" name="L602" href="#L602">602</a> <em class="jxr_javadoccomment">     * @return</em>
-<a class="jxr_linenumber" name="L603" href="#L603">603</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L604" href="#L604">604</a>     <strong class="jxr_keyword">protected</strong> Context createSiteTemplateVelocityContext( SiteRendererSink siteRendererSink,
-<a class="jxr_linenumber" name="L605" href="#L605">605</a>                                                          <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> siteRenderingContext )
-<a class="jxr_linenumber" name="L606" href="#L606">606</a>     {
-<a class="jxr_linenumber" name="L607" href="#L607">607</a>         <em class="jxr_comment">// first get the context from document</em>
-<a class="jxr_linenumber" name="L608" href="#L608">608</a>         Context context = createDocumentVelocityContext( siteRendererSink.getRenderingContext(), siteRenderingContext );
-<a class="jxr_linenumber" name="L609" href="#L609">609</a> 
-<a class="jxr_linenumber" name="L610" href="#L610">610</a>         <em class="jxr_comment">// then add data objects from rendered document</em>
-<a class="jxr_linenumber" name="L611" href="#L611">611</a> 
-<a class="jxr_linenumber" name="L612" href="#L612">612</a>         <em class="jxr_comment">// Add infos from document</em>
-<a class="jxr_linenumber" name="L613" href="#L613">613</a>         context.put( <span class="jxr_string">"authors"</span>, siteRendererSink.getAuthors() );
-<a class="jxr_linenumber" name="L614" href="#L614">614</a> 
-<a class="jxr_linenumber" name="L615" href="#L615">615</a>         context.put( <span class="jxr_string">"shortTitle"</span>, siteRendererSink.getTitle() );
-<a class="jxr_linenumber" name="L616" href="#L616">616</a> 
-<a class="jxr_linenumber" name="L617" href="#L617">617</a>         <em class="jxr_comment">// DOXIASITETOOLS-70: Prepend the project name to the title, if any</em>
-<a class="jxr_linenumber" name="L618" href="#L618">618</a>         String title = <span class="jxr_string">""</span>;
-<a class="jxr_linenumber" name="L619" href="#L619">619</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getDecoration() != <strong class="jxr_keyword">null</strong>
-<a class="jxr_linenumber" name="L620" href="#L620">620</a>                 &amp;&amp; siteRenderingContext.getDecoration().getName() != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L592" href="#L592">592</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L593" href="#L593">593</a> <em class="jxr_javadoccomment">     * Create a Velocity Context for the site template decorating the document. In addition to all the informations</em>
+<a class="jxr_linenumber" name="L594" href="#L594">594</a> <em class="jxr_javadoccomment">     * from the document, this context contains data gathered in {@link SiteRendererSink} during document rendering.</em>
+<a class="jxr_linenumber" name="L595" href="#L595">595</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L596" href="#L596">596</a> <em class="jxr_javadoccomment">     * @param siteRendererSink the site renderer sink for the document</em>
+<a class="jxr_linenumber" name="L597" href="#L597">597</a> <em class="jxr_javadoccomment">     * @param siteRenderingContext the site rendering context</em>
+<a class="jxr_linenumber" name="L598" href="#L598">598</a> <em class="jxr_javadoccomment">     * @return</em>
+<a class="jxr_linenumber" name="L599" href="#L599">599</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L600" href="#L600">600</a>     <strong class="jxr_keyword">protected</strong> Context createSiteTemplateVelocityContext( SiteRendererSink siteRendererSink,
+<a class="jxr_linenumber" name="L601" href="#L601">601</a>                                                          <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> siteRenderingContext )
+<a class="jxr_linenumber" name="L602" href="#L602">602</a>     {
+<a class="jxr_linenumber" name="L603" href="#L603">603</a>         <em class="jxr_comment">// first get the context from document</em>
+<a class="jxr_linenumber" name="L604" href="#L604">604</a>         Context context = createDocumentVelocityContext( siteRendererSink.getRenderingContext(), siteRenderingContext );
+<a class="jxr_linenumber" name="L605" href="#L605">605</a> 
+<a class="jxr_linenumber" name="L606" href="#L606">606</a>         <em class="jxr_comment">// then add data objects from rendered document</em>
+<a class="jxr_linenumber" name="L607" href="#L607">607</a> 
+<a class="jxr_linenumber" name="L608" href="#L608">608</a>         <em class="jxr_comment">// Add infos from document</em>
+<a class="jxr_linenumber" name="L609" href="#L609">609</a>         context.put( <span class="jxr_string">"authors"</span>, siteRendererSink.getAuthors() );
+<a class="jxr_linenumber" name="L610" href="#L610">610</a> 
+<a class="jxr_linenumber" name="L611" href="#L611">611</a>         context.put( <span class="jxr_string">"shortTitle"</span>, siteRendererSink.getTitle() );
+<a class="jxr_linenumber" name="L612" href="#L612">612</a> 
+<a class="jxr_linenumber" name="L613" href="#L613">613</a>         <em class="jxr_comment">// DOXIASITETOOLS-70: Prepend the project name to the title, if any</em>
+<a class="jxr_linenumber" name="L614" href="#L614">614</a>         String title = <span class="jxr_string">""</span>;
+<a class="jxr_linenumber" name="L615" href="#L615">615</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getDecoration() != <strong class="jxr_keyword">null</strong>
+<a class="jxr_linenumber" name="L616" href="#L616">616</a>                 &amp;&amp; siteRenderingContext.getDecoration().getName() != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L617" href="#L617">617</a>         {
+<a class="jxr_linenumber" name="L618" href="#L618">618</a>             title = siteRenderingContext.getDecoration().getName();
+<a class="jxr_linenumber" name="L619" href="#L619">619</a>         }
+<a class="jxr_linenumber" name="L620" href="#L620">620</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getDefaultWindowTitle() != <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="L621" href="#L621">621</a>         {
-<a class="jxr_linenumber" name="L622" href="#L622">622</a>             title = siteRenderingContext.getDecoration().getName();
+<a class="jxr_linenumber" name="L622" href="#L622">622</a>             title = siteRenderingContext.getDefaultWindowTitle();
 <a class="jxr_linenumber" name="L623" href="#L623">623</a>         }
-<a class="jxr_linenumber" name="L624" href="#L624">624</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getDefaultWindowTitle() != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L625" href="#L625">625</a>         {
-<a class="jxr_linenumber" name="L626" href="#L626">626</a>             title = siteRenderingContext.getDefaultWindowTitle();
-<a class="jxr_linenumber" name="L627" href="#L627">627</a>         }
-<a class="jxr_linenumber" name="L628" href="#L628">628</a> 
-<a class="jxr_linenumber" name="L629" href="#L629">629</a>         <strong class="jxr_keyword">if</strong> ( title.length() &gt; 0 )
-<a class="jxr_linenumber" name="L630" href="#L630">630</a>         {
-<a class="jxr_linenumber" name="L631" href="#L631">631</a>             title += <span class="jxr_string">" &amp;#x2013; "</span>; <em class="jxr_comment">// Symbol Name: En Dash, Html Entity: &amp;ndash;</em>
-<a class="jxr_linenumber" name="L632" href="#L632">632</a>         }
-<a class="jxr_linenumber" name="L633" href="#L633">633</a>         title += siteRendererSink.getTitle();
+<a class="jxr_linenumber" name="L624" href="#L624">624</a> 
+<a class="jxr_linenumber" name="L625" href="#L625">625</a>         <strong class="jxr_keyword">if</strong> ( title.length() &gt; 0 )
+<a class="jxr_linenumber" name="L626" href="#L626">626</a>         {
+<a class="jxr_linenumber" name="L627" href="#L627">627</a>             title += <span class="jxr_string">" &amp;#x2013; "</span>; <em class="jxr_comment">// Symbol Name: En Dash, Html Entity: &amp;ndash;</em>
+<a class="jxr_linenumber" name="L628" href="#L628">628</a>         }
+<a class="jxr_linenumber" name="L629" href="#L629">629</a>         title += siteRendererSink.getTitle();
+<a class="jxr_linenumber" name="L630" href="#L630">630</a> 
+<a class="jxr_linenumber" name="L631" href="#L631">631</a>         context.put( <span class="jxr_string">"title"</span>, title );
+<a class="jxr_linenumber" name="L632" href="#L632">632</a> 
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>         context.put( <span class="jxr_string">"headContent"</span>, siteRendererSink.getHead() );
 <a class="jxr_linenumber" name="L634" href="#L634">634</a> 
-<a class="jxr_linenumber" name="L635" href="#L635">635</a>         context.put( <span class="jxr_string">"title"</span>, title );
+<a class="jxr_linenumber" name="L635" href="#L635">635</a>         context.put( <span class="jxr_string">"bodyContent"</span>, siteRendererSink.getBody() );
 <a class="jxr_linenumber" name="L636" href="#L636">636</a> 
-<a class="jxr_linenumber" name="L637" href="#L637">637</a>         context.put( <span class="jxr_string">"headContent"</span>, siteRendererSink.getHead() );
-<a class="jxr_linenumber" name="L638" href="#L638">638</a> 
-<a class="jxr_linenumber" name="L639" href="#L639">639</a>         context.put( <span class="jxr_string">"bodyContent"</span>, siteRendererSink.getBody() );
-<a class="jxr_linenumber" name="L640" href="#L640">640</a> 
-<a class="jxr_linenumber" name="L641" href="#L641">641</a>         SimpleDateFormat sdf = <strong class="jxr_keyword">new</strong> SimpleDateFormat( <span class="jxr_string">"yyyyMMdd"</span> );
-<a class="jxr_linenumber" name="L642" href="#L642">642</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isNotEmpty( siteRendererSink.getDate() ) )
-<a class="jxr_linenumber" name="L643" href="#L643">643</a>         {
-<a class="jxr_linenumber" name="L644" href="#L644">644</a>             String documentDate = siteRendererSink.getDate();
-<a class="jxr_linenumber" name="L645" href="#L645">645</a> 
-<a class="jxr_linenumber" name="L646" href="#L646">646</a>             <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L647" href="#L647">647</a>             {
-<a class="jxr_linenumber" name="L648" href="#L648">648</a>                 <em class="jxr_comment">// we support only ISO-8601 date</em>
-<a class="jxr_linenumber" name="L649" href="#L649">649</a>                 Date dateCreation = <strong class="jxr_keyword">new</strong> SimpleDateFormat( <span class="jxr_string">"yyyy-MM-dd"</span> ).parse( documentDate );
-<a class="jxr_linenumber" name="L650" href="#L650">650</a> 
-<a class="jxr_linenumber" name="L651" href="#L651">651</a>                 context.put( <span class="jxr_string">"dateCreation"</span>, sdf.format( dateCreation ) );
-<a class="jxr_linenumber" name="L652" href="#L652">652</a>             }
-<a class="jxr_linenumber" name="L653" href="#L653">653</a>             <strong class="jxr_keyword">catch</strong> ( java.text.ParseException e )
-<a class="jxr_linenumber" name="L654" href="#L654">654</a>             {
-<a class="jxr_linenumber" name="L655" href="#L655">655</a>                 getLogger().warn( <span class="jxr_string">"Could not parse date '"</span> + documentDate + <span class="jxr_string">"' from "</span>
-<a class="jxr_linenumber" name="L656" href="#L656">656</a>                     + siteRendererSink.getRenderingContext().getInputName()
-<a class="jxr_linenumber" name="L657" href="#L657">657</a>                     + <span class="jxr_string">" (expected yyyy-MM-dd format), ignoring!"</span> );
-<a class="jxr_linenumber" name="L658" href="#L658">658</a>             }
-<a class="jxr_linenumber" name="L659" href="#L659">659</a>         }
+<a class="jxr_linenumber" name="L637" href="#L637">637</a>         SimpleDateFormat sdf = <strong class="jxr_keyword">new</strong> SimpleDateFormat( <span class="jxr_string">"yyyyMMdd"</span> );
+<a class="jxr_linenumber" name="L638" href="#L638">638</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isNotEmpty( siteRendererSink.getDate() ) )
+<a class="jxr_linenumber" name="L639" href="#L639">639</a>         {
+<a class="jxr_linenumber" name="L640" href="#L640">640</a>             String documentDate = siteRendererSink.getDate();
+<a class="jxr_linenumber" name="L641" href="#L641">641</a> 
+<a class="jxr_linenumber" name="L642" href="#L642">642</a>             <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L643" href="#L643">643</a>             {
+<a class="jxr_linenumber" name="L644" href="#L644">644</a>                 <em class="jxr_comment">// we support only ISO 8601 date</em>
+<a class="jxr_linenumber" name="L645" href="#L645">645</a>                 Date creationDate = <strong class="jxr_keyword">new</strong> SimpleDateFormat( <span class="jxr_string">"yyyy-MM-dd"</span> ).parse( documentDate );
+<a class="jxr_linenumber" name="L646" href="#L646">646</a> 
+<a class="jxr_linenumber" name="L647" href="#L647">647</a>                 context.put( <span class="jxr_string">"creationDate"</span>, creationDate );
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>                 context.put( <span class="jxr_string">"dateCreation"</span>, sdf.format( creationDate ) );
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>             }
+<a class="jxr_linenumber" name="L650" href="#L650">650</a>             <strong class="jxr_keyword">catch</strong> ( java.text.ParseException e )
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>             {
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>                 getLogger().warn( <span class="jxr_string">"Could not parse date '"</span> + documentDate + <span class="jxr_string">"' from "</span>
+<a class="jxr_linenumber" name="L653" href="#L653">653</a>                     + siteRendererSink.getRenderingContext().getInputName()
+<a class="jxr_linenumber" name="L654" href="#L654">654</a>                     + <span class="jxr_string">" (expected yyyy-MM-dd format), ignoring!"</span> );
+<a class="jxr_linenumber" name="L655" href="#L655">655</a>             }
+<a class="jxr_linenumber" name="L656" href="#L656">656</a>         }
+<a class="jxr_linenumber" name="L657" href="#L657">657</a> 
+<a class="jxr_linenumber" name="L658" href="#L658">658</a>         <strong class="jxr_keyword">return</strong> context;
+<a class="jxr_linenumber" name="L659" href="#L659">659</a>     }
 <a class="jxr_linenumber" name="L660" href="#L660">660</a> 
-<a class="jxr_linenumber" name="L661" href="#L661">661</a>         <strong class="jxr_keyword">return</strong> context;
-<a class="jxr_linenumber" name="L662" href="#L662">662</a>     }
-<a class="jxr_linenumber" name="L663" href="#L663">663</a> 
-<a class="jxr_linenumber" name="L664" href="#L664">664</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L665" href="#L665">665</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> generateDocument( Writer writer, SiteRendererSink sink, SiteRenderingContext siteRenderingContext )
-<a class="jxr_linenumber" name="L666" href="#L666">666</a>             <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>
-<a class="jxr_linenumber" name="L667" href="#L667">667</a>     {
-<a class="jxr_linenumber" name="L668" href="#L668">668</a>         String templateName = siteRenderingContext.getTemplateName();
+<a class="jxr_linenumber" name="L661" href="#L661">661</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L662" href="#L662">662</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> generateDocument( Writer writer, SiteRendererSink sink, SiteRenderingContext siteRenderingContext )
+<a class="jxr_linenumber" name="L663" href="#L663">663</a>             <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>
+<a class="jxr_linenumber" name="L664" href="#L664">664</a>     {
+<a class="jxr_linenumber" name="L665" href="#L665">665</a>         String templateName = siteRenderingContext.getTemplateName();
+<a class="jxr_linenumber" name="L666" href="#L666">666</a> 
+<a class="jxr_linenumber" name="L667" href="#L667">667</a>         getLogger().debug( <span class="jxr_string">"Processing Velocity for template "</span> + templateName + <span class="jxr_string">" on "</span>
+<a class="jxr_linenumber" name="L668" href="#L668">668</a>             + sink.getRenderingContext().getInputName() );
 <a class="jxr_linenumber" name="L669" href="#L669">669</a> 
-<a class="jxr_linenumber" name="L670" href="#L670">670</a>         getLogger().debug( <span class="jxr_string">"Processing Velocity for template "</span> + templateName + <span class="jxr_string">" on "</span>
-<a class="jxr_linenumber" name="L671" href="#L671">671</a>             + sink.getRenderingContext().getInputName() );
-<a class="jxr_linenumber" name="L672" href="#L672">672</a> 
-<a class="jxr_linenumber" name="L673" href="#L673">673</a>         Context context = createSiteTemplateVelocityContext( sink, siteRenderingContext );
-<a class="jxr_linenumber" name="L674" href="#L674">674</a> 
-<a class="jxr_linenumber" name="L675" href="#L675">675</a>         ClassLoader old = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L676" href="#L676">676</a> 
-<a class="jxr_linenumber" name="L677" href="#L677">677</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getTemplateClassLoader() != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L678" href="#L678">678</a>         {
-<a class="jxr_linenumber" name="L679" href="#L679">679</a>             <em class="jxr_comment">// -------------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L680" href="#L680">680</a>             <em class="jxr_comment">// If no template classloader was set we'll just use the context classloader</em>
-<a class="jxr_linenumber" name="L681" href="#L681">681</a>             <em class="jxr_comment">// -------------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L682" href="#L682">682</a> 
-<a class="jxr_linenumber" name="L683" href="#L683">683</a>             old = Thread.currentThread().getContextClassLoader();
+<a class="jxr_linenumber" name="L670" href="#L670">670</a>         Context context = createSiteTemplateVelocityContext( sink, siteRenderingContext );
+<a class="jxr_linenumber" name="L671" href="#L671">671</a> 
+<a class="jxr_linenumber" name="L672" href="#L672">672</a>         ClassLoader old = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L673" href="#L673">673</a> 
+<a class="jxr_linenumber" name="L674" href="#L674">674</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getTemplateClassLoader() != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L675" href="#L675">675</a>         {
+<a class="jxr_linenumber" name="L676" href="#L676">676</a>             <em class="jxr_comment">// -------------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L677" href="#L677">677</a>             <em class="jxr_comment">// If no template classloader was set we'll just use the context classloader</em>
+<a class="jxr_linenumber" name="L678" href="#L678">678</a>             <em class="jxr_comment">// -------------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L679" href="#L679">679</a> 
+<a class="jxr_linenumber" name="L680" href="#L680">680</a>             old = Thread.currentThread().getContextClassLoader();
+<a class="jxr_linenumber" name="L681" href="#L681">681</a> 
+<a class="jxr_linenumber" name="L682" href="#L682">682</a>             Thread.currentThread().setContextClassLoader( siteRenderingContext.getTemplateClassLoader() );
+<a class="jxr_linenumber" name="L683" href="#L683">683</a>         }
 <a class="jxr_linenumber" name="L684" href="#L684">684</a> 
-<a class="jxr_linenumber" name="L685" href="#L685">685</a>             Thread.currentThread().setContextClassLoader( siteRenderingContext.getTemplateClassLoader() );
-<a class="jxr_linenumber" name="L686" href="#L686">686</a>         }
-<a class="jxr_linenumber" name="L687" href="#L687">687</a> 
-<a class="jxr_linenumber" name="L688" href="#L688">688</a>         <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L689" href="#L689">689</a>         {
-<a class="jxr_linenumber" name="L690" href="#L690">690</a>             Template template;
-<a class="jxr_linenumber" name="L691" href="#L691">691</a> 
-<a class="jxr_linenumber" name="L692" href="#L692">692</a>             <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L693" href="#L693">693</a>             {
-<a class="jxr_linenumber" name="L694" href="#L694">694</a>                 <a href="../../../../../org/apache/maven/doxia/site/skin/SkinModel.html">SkinModel</a> skinModel = siteRenderingContext.getSkinModel();
-<a class="jxr_linenumber" name="L695" href="#L695">695</a>                 String encoding = ( skinModel == <strong class="jxr_keyword">null</strong> ) ? <strong class="jxr_keyword">null</strong> : skinModel.getEncoding();
-<a class="jxr_linenumber" name="L696" href="#L696">696</a> 
-<a class="jxr_linenumber" name="L697" href="#L697">697</a>                 template = ( encoding == <strong class="jxr_keyword">null</strong> ) ? velocity.getEngine().getTemplate( templateName )
-<a class="jxr_linenumber" name="L698" href="#L698">698</a>                                 : velocity.getEngine().getTemplate( templateName, encoding );
-<a class="jxr_linenumber" name="L699" href="#L699">699</a>             }
-<a class="jxr_linenumber" name="L700" href="#L700">700</a>             <strong class="jxr_keyword">catch</strong> ( Exception e )
-<a class="jxr_linenumber" name="L701" href="#L701">701</a>             {
-<a class="jxr_linenumber" name="L702" href="#L702">702</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Could not find the site decoration template '"</span> + templateName + <span class="jxr_string">"'"</span>, e );
-<a class="jxr_linenumber" name="L703" href="#L703">703</a>             }
-<a class="jxr_linenumber" name="L704" href="#L704">704</a> 
-<a class="jxr_linenumber" name="L705" href="#L705">705</a>             <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L706" href="#L706">706</a>             {
-<a class="jxr_linenumber" name="L707" href="#L707">707</a>                 template.merge( context, writer );
-<a class="jxr_linenumber" name="L708" href="#L708">708</a>             }
-<a class="jxr_linenumber" name="L709" href="#L709">709</a>             <strong class="jxr_keyword">catch</strong> ( Exception e )
-<a class="jxr_linenumber" name="L710" href="#L710">710</a>             {
-<a class="jxr_linenumber" name="L711" href="#L711">711</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Error while merging site decoration template."</span>, e );
-<a class="jxr_linenumber" name="L712" href="#L712">712</a>             }
-<a class="jxr_linenumber" name="L713" href="#L713">713</a>         }
-<a class="jxr_linenumber" name="L714" href="#L714">714</a>         <strong class="jxr_keyword">finally</strong>
-<a class="jxr_linenumber" name="L715" href="#L715">715</a>         {
-<a class="jxr_linenumber" name="L716" href="#L716">716</a>             IOUtil.close( writer );
-<a class="jxr_linenumber" name="L717" href="#L717">717</a> 
-<a class="jxr_linenumber" name="L718" href="#L718">718</a>             <strong class="jxr_keyword">if</strong> ( old != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L719" href="#L719">719</a>             {
-<a class="jxr_linenumber" name="L720" href="#L720">720</a>                 Thread.currentThread().setContextClassLoader( old );
-<a class="jxr_linenumber" name="L721" href="#L721">721</a>             }
-<a class="jxr_linenumber" name="L722" href="#L722">722</a>         }
-<a class="jxr_linenumber" name="L723" href="#L723">723</a>     }
-<a class="jxr_linenumber" name="L724" href="#L724">724</a> 
-<a class="jxr_linenumber" name="L725" href="#L725">725</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> createSiteRenderingContext( Map&lt;String, ?&gt; attributes, DecorationModel decoration,
-<a class="jxr_linenumber" name="L726" href="#L726">726</a>                                                              String defaultWindowTitle, Locale locale )
-<a class="jxr_linenumber" name="L727" href="#L727">727</a>     {
-<a class="jxr_linenumber" name="L728" href="#L728">728</a>         <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> context = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a>();
-<a class="jxr_linenumber" name="L729" href="#L729">729</a> 
-<a class="jxr_linenumber" name="L730" href="#L730">730</a>         context.setTemplateProperties( attributes );
-<a class="jxr_linenumber" name="L731" href="#L731">731</a>         context.setLocale( locale );
-<a class="jxr_linenumber" name="L732" href="#L732">732</a>         context.setDecoration( decoration );
-<a class="jxr_linenumber" name="L733" href="#L733">733</a>         context.setDefaultWindowTitle( defaultWindowTitle );
+<a class="jxr_linenumber" name="L685" href="#L685">685</a>         <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L686" href="#L686">686</a>         {
+<a class="jxr_linenumber" name="L687" href="#L687">687</a>             Template template;
+<a class="jxr_linenumber" name="L688" href="#L688">688</a> 
+<a class="jxr_linenumber" name="L689" href="#L689">689</a>             <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L690" href="#L690">690</a>             {
+<a class="jxr_linenumber" name="L691" href="#L691">691</a>                 <a href="../../../../../org/apache/maven/doxia/site/skin/SkinModel.html">SkinModel</a> skinModel = siteRenderingContext.getSkinModel();
+<a class="jxr_linenumber" name="L692" href="#L692">692</a>                 String encoding = ( skinModel == <strong class="jxr_keyword">null</strong> ) ? <strong class="jxr_keyword">null</strong> : skinModel.getEncoding();
+<a class="jxr_linenumber" name="L693" href="#L693">693</a> 
+<a class="jxr_linenumber" name="L694" href="#L694">694</a>                 template = ( encoding == <strong class="jxr_keyword">null</strong> ) ? velocity.getEngine().getTemplate( templateName )
+<a class="jxr_linenumber" name="L695" href="#L695">695</a>                                 : velocity.getEngine().getTemplate( templateName, encoding );
+<a class="jxr_linenumber" name="L696" href="#L696">696</a>             }
+<a class="jxr_linenumber" name="L697" href="#L697">697</a>             <strong class="jxr_keyword">catch</strong> ( Exception e )
+<a class="jxr_linenumber" name="L698" href="#L698">698</a>             {
+<a class="jxr_linenumber" name="L699" href="#L699">699</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Could not find the site decoration template '"</span> + templateName + <span class="jxr_string">"'"</span>, e );
+<a class="jxr_linenumber" name="L700" href="#L700">700</a>             }
+<a class="jxr_linenumber" name="L701" href="#L701">701</a> 
+<a class="jxr_linenumber" name="L702" href="#L702">702</a>             <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L703" href="#L703">703</a>             {
+<a class="jxr_linenumber" name="L704" href="#L704">704</a>                 template.merge( context, writer );
+<a class="jxr_linenumber" name="L705" href="#L705">705</a>             }
+<a class="jxr_linenumber" name="L706" href="#L706">706</a>             <strong class="jxr_keyword">catch</strong> ( Exception e )
+<a class="jxr_linenumber" name="L707" href="#L707">707</a>             {
+<a class="jxr_linenumber" name="L708" href="#L708">708</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Error while merging site decoration template."</span>, e );
+<a class="jxr_linenumber" name="L709" href="#L709">709</a>             }
+<a class="jxr_linenumber" name="L710" href="#L710">710</a>         }
+<a class="jxr_linenumber" name="L711" href="#L711">711</a>         <strong class="jxr_keyword">finally</strong>
+<a class="jxr_linenumber" name="L712" href="#L712">712</a>         {
+<a class="jxr_linenumber" name="L713" href="#L713">713</a>             IOUtil.close( writer );
+<a class="jxr_linenumber" name="L714" href="#L714">714</a> 
+<a class="jxr_linenumber" name="L715" href="#L715">715</a>             <strong class="jxr_keyword">if</strong> ( old != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L716" href="#L716">716</a>             {
+<a class="jxr_linenumber" name="L717" href="#L717">717</a>                 Thread.currentThread().setContextClassLoader( old );
+<a class="jxr_linenumber" name="L718" href="#L718">718</a>             }
+<a class="jxr_linenumber" name="L719" href="#L719">719</a>         }
+<a class="jxr_linenumber" name="L720" href="#L720">720</a>     }
+<a class="jxr_linenumber" name="L721" href="#L721">721</a> 
+<a class="jxr_linenumber" name="L722" href="#L722">722</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> createSiteRenderingContext( Map&lt;String, ?&gt; attributes, DecorationModel decoration,
+<a class="jxr_linenumber" name="L723" href="#L723">723</a>                                                              String defaultWindowTitle, Locale locale )
+<a class="jxr_linenumber" name="L724" href="#L724">724</a>     {
+<a class="jxr_linenumber" name="L725" href="#L725">725</a>         <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> context = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a>();
+<a class="jxr_linenumber" name="L726" href="#L726">726</a> 
+<a class="jxr_linenumber" name="L727" href="#L727">727</a>         context.setTemplateProperties( attributes );
+<a class="jxr_linenumber" name="L728" href="#L728">728</a>         context.setLocale( locale );
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>         context.setDecoration( decoration );
+<a class="jxr_linenumber" name="L730" href="#L730">730</a>         context.setDefaultWindowTitle( defaultWindowTitle );
+<a class="jxr_linenumber" name="L731" href="#L731">731</a> 
+<a class="jxr_linenumber" name="L732" href="#L732">732</a>         <strong class="jxr_keyword">return</strong> context;
+<a class="jxr_linenumber" name="L733" href="#L733">733</a>     }
 <a class="jxr_linenumber" name="L734" href="#L734">734</a> 
-<a class="jxr_linenumber" name="L735" href="#L735">735</a>         <strong class="jxr_keyword">return</strong> context;
-<a class="jxr_linenumber" name="L736" href="#L736">736</a>     }
-<a class="jxr_linenumber" name="L737" href="#L737">737</a> 
-<a class="jxr_linenumber" name="L738" href="#L738">738</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L739" href="#L739">739</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> createContextForSkin( File skinFile, Map&lt;String, ?&gt; attributes,
-<a class="jxr_linenumber" name="L740" href="#L740">740</a>                                                       <a href="../../../../../org/apache/maven/doxia/site/decoration/DecorationModel.html">DecorationModel</a> decoration, String defaultWindowTitle,
-<a class="jxr_linenumber" name="L741" href="#L741">741</a>                                                       Locale locale )
-<a class="jxr_linenumber" name="L742" href="#L742">742</a>             <strong class="jxr_keyword">throws</strong> IOException, <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>
-<a class="jxr_linenumber" name="L743" href="#L743">743</a>     {
-<a class="jxr_linenumber" name="L744" href="#L744">744</a>         <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> context = createSiteRenderingContext( attributes, decoration, defaultWindowTitle, locale );
-<a class="jxr_linenumber" name="L745" href="#L745">745</a> 
-<a class="jxr_linenumber" name="L746" href="#L746">746</a>         context.setSkinJarFile( skinFile );
+<a class="jxr_linenumber" name="L735" href="#L735">735</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L736" href="#L736">736</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> createContextForSkin( File skinFile, Map&lt;String, ?&gt; attributes,
+<a class="jxr_linenumber" name="L737" href="#L737">737</a>                                                       <a href="../../../../../org/apache/maven/doxia/site/decoration/DecorationModel.html">DecorationModel</a> decoration, String defaultWindowTitle,
+<a class="jxr_linenumber" name="L738" href="#L738">738</a>                                                       Locale locale )
+<a class="jxr_linenumber" name="L739" href="#L739">739</a>             <strong class="jxr_keyword">throws</strong> IOException, <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>
+<a class="jxr_linenumber" name="L740" href="#L740">740</a>     {
+<a class="jxr_linenumber" name="L741" href="#L741">741</a>         <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> context = createSiteRenderingContext( attributes, decoration, defaultWindowTitle, locale );
+<a class="jxr_linenumber" name="L742" href="#L742">742</a> 
+<a class="jxr_linenumber" name="L743" href="#L743">743</a>         context.setSkinJarFile( skinFile );
+<a class="jxr_linenumber" name="L744" href="#L744">744</a> 
+<a class="jxr_linenumber" name="L745" href="#L745">745</a>         ZipFile zipFile = getZipFile( skinFile );
+<a class="jxr_linenumber" name="L746" href="#L746">746</a>         InputStream in = <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="L747" href="#L747">747</a> 
-<a class="jxr_linenumber" name="L748" href="#L748">748</a>         ZipFile zipFile = getZipFile( skinFile );
-<a class="jxr_linenumber" name="L749" href="#L749">749</a>         InputStream in = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L750" href="#L750">750</a> 
-<a class="jxr_linenumber" name="L751" href="#L751">751</a>         <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L752" href="#L752">752</a>         {
-<a class="jxr_linenumber" name="L753" href="#L753">753</a>             <strong class="jxr_keyword">if</strong> ( zipFile.getEntry( SKIN_TEMPLATE_LOCATION ) != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L754" href="#L754">754</a>             {
-<a class="jxr_linenumber" name="L755" href="#L755">755</a>                 context.setTemplateName( SKIN_TEMPLATE_LOCATION );
-<a class="jxr_linenumber" name="L756" href="#L756">756</a>                 context.setTemplateClassLoader( <strong class="jxr_keyword">new</strong> URLClassLoader( <strong class="jxr_keyword">new</strong> URL[]{skinFile.toURI().toURL()} ) );
-<a class="jxr_linenumber" name="L757" href="#L757">757</a>             }
-<a class="jxr_linenumber" name="L758" href="#L758">758</a>             <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L759" href="#L759">759</a>             {
-<a class="jxr_linenumber" name="L760" href="#L760">760</a>                 context.setTemplateName( DEFAULT_TEMPLATE );
-<a class="jxr_linenumber" name="L761" href="#L761">761</a>                 context.setTemplateClassLoader( getClass().getClassLoader() );
-<a class="jxr_linenumber" name="L762" href="#L762">762</a>                 context.setUsingDefaultTemplate( <strong class="jxr_keyword">true</strong> );
-<a class="jxr_linenumber" name="L763" href="#L763">763</a>             }
-<a class="jxr_linenumber" name="L764" href="#L764">764</a> 
-<a class="jxr_linenumber" name="L765" href="#L765">765</a>             ZipEntry skinDescriptorEntry = zipFile.getEntry( SkinModel.SKIN_DESCRIPTOR_LOCATION );
-<a class="jxr_linenumber" name="L766" href="#L766">766</a>             <strong class="jxr_keyword">if</strong> ( skinDescriptorEntry != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L767" href="#L767">767</a>             {
-<a class="jxr_linenumber" name="L768" href="#L768">768</a>                 in = zipFile.getInputStream( skinDescriptorEntry );
+<a class="jxr_linenumber" name="L748" href="#L748">748</a>         <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L749" href="#L749">749</a>         {
+<a class="jxr_linenumber" name="L750" href="#L750">750</a>             <strong class="jxr_keyword">if</strong> ( zipFile.getEntry( SKIN_TEMPLATE_LOCATION ) != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L751" href="#L751">751</a>             {
+<a class="jxr_linenumber" name="L752" href="#L752">752</a>                 context.setTemplateName( SKIN_TEMPLATE_LOCATION );
+<a class="jxr_linenumber" name="L753" href="#L753">753</a>                 context.setTemplateClassLoader( <strong class="jxr_keyword">new</strong> URLClassLoader( <strong class="jxr_keyword">new</strong> URL[]{skinFile.toURI().toURL()} ) );
+<a class="jxr_linenumber" name="L754" href="#L754">754</a>             }
+<a class="jxr_linenumber" name="L755" href="#L755">755</a>             <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L756" href="#L756">756</a>             {
+<a class="jxr_linenumber" name="L757" href="#L757">757</a>                 context.setTemplateName( DEFAULT_TEMPLATE );
+<a class="jxr_linenumber" name="L758" href="#L758">758</a>                 context.setTemplateClassLoader( getClass().getClassLoader() );
+<a class="jxr_linenumber" name="L759" href="#L759">759</a>                 context.setUsingDefaultTemplate( <strong class="jxr_keyword">true</strong> );
+<a class="jxr_linenumber" name="L760" href="#L760">760</a>             }
+<a class="jxr_linenumber" name="L761" href="#L761">761</a> 
+<a class="jxr_linenumber" name="L762" href="#L762">762</a>             ZipEntry skinDescriptorEntry = zipFile.getEntry( SkinModel.SKIN_DESCRIPTOR_LOCATION );
+<a class="jxr_linenumber" name="L763" href="#L763">763</a>             <strong class="jxr_keyword">if</strong> ( skinDescriptorEntry != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L764" href="#L764">764</a>             {
+<a class="jxr_linenumber" name="L765" href="#L765">765</a>                 in = zipFile.getInputStream( skinDescriptorEntry );
+<a class="jxr_linenumber" name="L766" href="#L766">766</a> 
+<a class="jxr_linenumber" name="L767" href="#L767">767</a>                 <a href="../../../../../org/apache/maven/doxia/site/skin/SkinModel.html">SkinModel</a> skinModel = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/site/skin/io/xpp3/SkinXpp3Reader.html">SkinXpp3Reader</a>().read( in );
+<a class="jxr_linenumber" name="L768" href="#L768">768</a>                 context.setSkinModel( skinModel );
 <a class="jxr_linenumber" name="L769" href="#L769">769</a> 
-<a class="jxr_linenumber" name="L770" href="#L770">770</a>                 <a href="../../../../../org/apache/maven/doxia/site/skin/SkinModel.html">SkinModel</a> skinModel = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/site/skin/io/xpp3/SkinXpp3Reader.html">SkinXpp3Reader</a>().read( in );
-<a class="jxr_linenumber" name="L771" href="#L771">771</a>                 context.setSkinModel( skinModel );
+<a class="jxr_linenumber" name="L770" href="#L770">770</a>                 String toolsPrerequisite =
+<a class="jxr_linenumber" name="L771" href="#L771">771</a>                     skinModel.getPrerequisites() == <strong class="jxr_keyword">null</strong> ? <strong class="jxr_keyword">null</strong> : skinModel.getPrerequisites().getDoxiaSitetools();
 <a class="jxr_linenumber" name="L772" href="#L772">772</a> 
-<a class="jxr_linenumber" name="L773" href="#L773">773</a>                 String toolsPrerequisite =
-<a class="jxr_linenumber" name="L774" href="#L774">774</a>                     skinModel.getPrerequisites() == <strong class="jxr_keyword">null</strong> ? <strong class="jxr_keyword">null</strong> : skinModel.getPrerequisites().getDoxiaSitetools();
+<a class="jxr_linenumber" name="L773" href="#L773">773</a>                 Package p = DefaultSiteRenderer.<strong class="jxr_keyword">class</strong>.getPackage();
+<a class="jxr_linenumber" name="L774" href="#L774">774</a>                 String current = ( p == <strong class="jxr_keyword">null</strong> ) ? <strong class="jxr_keyword">null</strong> : p.getSpecificationVersion();
 <a class="jxr_linenumber" name="L775" href="#L775">775</a> 
-<a class="jxr_linenumber" name="L776" href="#L776">776</a>                 Package p = DefaultSiteRenderer.<strong class="jxr_keyword">class</strong>.getPackage();
-<a class="jxr_linenumber" name="L777" href="#L777">777</a>                 String current = ( p == <strong class="jxr_keyword">null</strong> ) ? <strong class="jxr_keyword">null</strong> : p.getSpecificationVersion();
-<a class="jxr_linenumber" name="L778" href="#L778">778</a> 
-<a class="jxr_linenumber" name="L779" href="#L779">779</a>                 <strong class="jxr_keyword">if</strong> ( StringUtils.isNotBlank( toolsPrerequisite ) &amp;&amp; ( current != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L780" href="#L780">780</a>                     &amp;&amp; !matchVersion( current, toolsPrerequisite ) )
-<a class="jxr_linenumber" name="L781" href="#L781">781</a>                 {
-<a class="jxr_linenumber" name="L782" href="#L782">782</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Cannot use skin: has "</span> + toolsPrerequisite
-<a class="jxr_linenumber" name="L783" href="#L783">783</a>                         + <span class="jxr_string">" Doxia Sitetools prerequisite, but current is "</span> + current );
-<a class="jxr_linenumber" name="L784" href="#L784">784</a>                 }
-<a class="jxr_linenumber" name="L785" href="#L785">785</a>             }
-<a class="jxr_linenumber" name="L786" href="#L786">786</a>         }
-<a class="jxr_linenumber" name="L787" href="#L787">787</a>         <strong class="jxr_keyword">catch</strong> ( XmlPullParserException e )
-<a class="jxr_linenumber" name="L788" href="#L788">788</a>         {
-<a class="jxr_linenumber" name="L789" href="#L789">789</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Failed to parse "</span> + SkinModel.SKIN_DESCRIPTOR_LOCATION
-<a class="jxr_linenumber" name="L790" href="#L790">790</a>                 + <span class="jxr_string">" skin descriptor from "</span> + skinFile, e );
-<a class="jxr_linenumber" name="L791" href="#L791">791</a>         }
-<a class="jxr_linenumber" name="L792" href="#L792">792</a>         <strong class="jxr_keyword">finally</strong>
-<a class="jxr_linenumber" name="L793" href="#L793">793</a>         {
-<a class="jxr_linenumber" name="L794" href="#L794">794</a>             IOUtil.close( in );
-<a class="jxr_linenumber" name="L795" href="#L795">795</a>             closeZipFile( zipFile );
-<a class="jxr_linenumber" name="L796" href="#L796">796</a>         }
+<a class="jxr_linenumber" name="L776" href="#L776">776</a>                 <strong class="jxr_keyword">if</strong> ( StringUtils.isNotBlank( toolsPrerequisite ) &amp;&amp; ( current != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L777" href="#L777">777</a>                     &amp;&amp; !matchVersion( current, toolsPrerequisite ) )
+<a class="jxr_linenumber" name="L778" href="#L778">778</a>                 {
+<a class="jxr_linenumber" name="L779" href="#L779">779</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Cannot use skin: has "</span> + toolsPrerequisite
+<a class="jxr_linenumber" name="L780" href="#L780">780</a>                         + <span class="jxr_string">" Doxia Sitetools prerequisite, but current is "</span> + current );
+<a class="jxr_linenumber" name="L781" href="#L781">781</a>                 }
+<a class="jxr_linenumber" name="L782" href="#L782">782</a>             }
+<a class="jxr_linenumber" name="L783" href="#L783">783</a>         }
+<a class="jxr_linenumber" name="L784" href="#L784">784</a>         <strong class="jxr_keyword">catch</strong> ( XmlPullParserException e )
+<a class="jxr_linenumber" name="L785" href="#L785">785</a>         {
+<a class="jxr_linenumber" name="L786" href="#L786">786</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Failed to parse "</span> + SkinModel.SKIN_DESCRIPTOR_LOCATION
+<a class="jxr_linenumber" name="L787" href="#L787">787</a>                 + <span class="jxr_string">" skin descriptor from "</span> + skinFile, e );
+<a class="jxr_linenumber" name="L788" href="#L788">788</a>         }
+<a class="jxr_linenumber" name="L789" href="#L789">789</a>         <strong class="jxr_keyword">finally</strong>
+<a class="jxr_linenumber" name="L790" href="#L790">790</a>         {
+<a class="jxr_linenumber" name="L791" href="#L791">791</a>             IOUtil.close( in );
+<a class="jxr_linenumber" name="L792" href="#L792">792</a>             closeZipFile( zipFile );
+<a class="jxr_linenumber" name="L793" href="#L793">793</a>         }
+<a class="jxr_linenumber" name="L794" href="#L794">794</a> 
+<a class="jxr_linenumber" name="L795" href="#L795">795</a>         <strong class="jxr_keyword">return</strong> context;
+<a class="jxr_linenumber" name="L796" href="#L796">796</a>     }
 <a class="jxr_linenumber" name="L797" href="#L797">797</a> 
-<a class="jxr_linenumber" name="L798" href="#L798">798</a>         <strong class="jxr_keyword">return</strong> context;
-<a class="jxr_linenumber" name="L799" href="#L799">799</a>     }
-<a class="jxr_linenumber" name="L800" href="#L800">800</a> 
-<a class="jxr_linenumber" name="L801" href="#L801">801</a>     <strong class="jxr_keyword">boolean</strong> matchVersion( String current, String prerequisite )
-<a class="jxr_linenumber" name="L802" href="#L802">802</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>
-<a class="jxr_linenumber" name="L803" href="#L803">803</a>     {
-<a class="jxr_linenumber" name="L804" href="#L804">804</a>         <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L805" href="#L805">805</a>         {
-<a class="jxr_linenumber" name="L806" href="#L806">806</a>             ArtifactVersion v = <strong class="jxr_keyword">new</strong> DefaultArtifactVersion( current );
-<a class="jxr_linenumber" name="L807" href="#L807">807</a>             VersionRange vr = VersionRange.createFromVersionSpec( prerequisite );
-<a class="jxr_linenumber" name="L808" href="#L808">808</a> 
-<a class="jxr_linenumber" name="L809" href="#L809">809</a>             <strong class="jxr_keyword">boolean</strong> matched = false;
-<a class="jxr_linenumber" name="L810" href="#L810">810</a>             ArtifactVersion recommendedVersion = vr.getRecommendedVersion();
-<a class="jxr_linenumber" name="L811" href="#L811">811</a>             <strong class="jxr_keyword">if</strong> ( recommendedVersion == <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L812" href="#L812">812</a>             {
-<a class="jxr_linenumber" name="L813" href="#L813">813</a>                 List&lt;Restriction&gt; restrictions = vr.getRestrictions();
-<a class="jxr_linenumber" name="L814" href="#L814">814</a>                 <strong class="jxr_keyword">for</strong> ( Restriction restriction : restrictions )
-<a class="jxr_linenumber" name="L815" href="#L815">815</a>                 {
-<a class="jxr_linenumber" name="L816" href="#L816">816</a>                     <strong class="jxr_keyword">if</strong> ( restriction.containsVersion( v ) )
-<a class="jxr_linenumber" name="L817" href="#L817">817</a>                     {
-<a class="jxr_linenumber" name="L818" href="#L818">818</a>                         matched = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L819" href="#L819">819</a>                         <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="L820" href="#L820">820</a>                     }
-<a class="jxr_linenumber" name="L821" href="#L821">821</a>                 }
-<a class="jxr_linenumber" name="L822" href="#L822">822</a>             }
-<a class="jxr_linenumber" name="L823" href="#L823">823</a>             <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L824" href="#L824">824</a>             {
-<a class="jxr_linenumber" name="L825" href="#L825">825</a>                 <em class="jxr_comment">// only singular versions ever have a recommendedVersion</em>
-<a class="jxr_linenumber" name="L826" href="#L826">826</a>                 @SuppressWarnings( <span class="jxr_string">"unchecked"</span> )
-<a class="jxr_linenumber" name="L827" href="#L827">827</a>                 <strong class="jxr_keyword">int</strong> compareTo = recommendedVersion.compareTo( v );
-<a class="jxr_linenumber" name="L828" href="#L828">828</a>                 matched = ( compareTo &lt;= 0 );
-<a class="jxr_linenumber" name="L829" href="#L829">829</a>             }
-<a class="jxr_linenumber" name="L830" href="#L830">830</a> 
-<a class="jxr_linenumber" name="L831" href="#L831">831</a>             <strong class="jxr_keyword">if</strong> ( getLogger().isDebugEnabled() )
-<a class="jxr_linenumber" name="L832" href="#L832">832</a>             {
-<a class="jxr_linenumber" name="L833" href="#L833">833</a>                 getLogger().debug( <span class="jxr_string">"Skin doxia-site-tools prerequisite: "</span> + prerequisite + <span class="jxr_string">", current: "</span> + current
-<a class="jxr_linenumber" name="L834" href="#L834">834</a>                     + <span class="jxr_string">", matched = "</span> + matched );
-<a class="jxr_linenumber" name="L835" href="#L835">835</a>             }
-<a class="jxr_linenumber" name="L836" href="#L836">836</a> 
-<a class="jxr_linenumber" name="L837" href="#L837">837</a>             <strong class="jxr_keyword">return</strong> matched;
-<a class="jxr_linenumber" name="L838" href="#L838">838</a>         }
-<a class="jxr_linenumber" name="L839" href="#L839">839</a>         <strong class="jxr_keyword">catch</strong> ( InvalidVersionSpecificationException e )
-<a class="jxr_linenumber" name="L840" href="#L840">840</a>         {
-<a class="jxr_linenumber" name="L841" href="#L841">841</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Invalid skin doxia-site-tools prerequisite: "</span> + prerequisite, e );
-<a class="jxr_linenumber" name="L842" href="#L842">842</a>         }
-<a class="jxr_linenumber" name="L843" href="#L843">843</a>     }
-<a class="jxr_linenumber" name="L844" href="#L844">844</a> 
-<a class="jxr_linenumber" name="L845" href="#L845">845</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L846" href="#L846">846</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> createContextForTemplate( File templateFile, Map&lt;String, ?&gt; attributes,
-<a class="jxr_linenumber" name="L847" href="#L847">847</a>                                                           <a href="../../../../../org/apache/maven/doxia/site/decoration/DecorationModel.html">DecorationModel</a> decoration, String defaultWindowTitle,
-<a class="jxr_linenumber" name="L848" href="#L848">848</a>                                                           Locale locale )
-<a class="jxr_linenumber" name="L849" href="#L849">849</a>             <strong class="jxr_keyword">throws</strong> MalformedURLException
-<a class="jxr_linenumber" name="L850" href="#L850">850</a>     {
-<a class="jxr_linenumber" name="L851" href="#L851">851</a>         <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> context = createSiteRenderingContext( attributes, decoration, defaultWindowTitle, locale );
-<a class="jxr_linenumber" name="L852" href="#L852">852</a> 
-<a class="jxr_linenumber" name="L853" href="#L853">853</a>         context.setTemplateName( templateFile.getName() );
-<a class="jxr_linenumber" name="L854" href="#L854">854</a>         context.setTemplateClassLoader( <strong class="jxr_keyword">new</strong> URLClassLoader( <strong class="jxr_keyword">new</strong> URL[]{templateFile.getParentFile().toURI().toURL()} ) );
-<a class="jxr_linenumber" name="L855" href="#L855">855</a> 
-<a class="jxr_linenumber" name="L856" href="#L856">856</a>         <strong class="jxr_keyword">return</strong> context;
-<a class="jxr_linenumber" name="L857" href="#L857">857</a>     }
-<a class="jxr_linenumber" name="L858" href="#L858">858</a> 
-<a class="jxr_linenumber" name="L859" href="#L859">859</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L860" href="#L860">860</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> copyResources( SiteRenderingContext siteRenderingContext, File resourcesDirectory,
-<a class="jxr_linenumber" name="L861" href="#L861">861</a>                                File outputDirectory )
-<a class="jxr_linenumber" name="L862" href="#L862">862</a>         <strong class="jxr_keyword">throws</strong> IOException
-<a class="jxr_linenumber" name="L863" href="#L863">863</a>     {
-<a class="jxr_linenumber" name="L864" href="#L864">864</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> AssertionError( <span class="jxr_string">"copyResources( SiteRenderingContext, File, File ) is deprecated."</span> );
-<a class="jxr_linenumber" name="L865" href="#L865">865</a>     }
-<a class="jxr_linenumber" name="L866" href="#L866">866</a> 
-<a class="jxr_linenumber" name="L867" href="#L867">867</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L868" href="#L868">868</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> copyResources( SiteRenderingContext siteRenderingContext, File outputDirectory )
-<a class="jxr_linenumber" name="L869" href="#L869">869</a>         <strong class="jxr_keyword">throws</strong> IOException
-<a class="jxr_linenumber" name="L870" href="#L870">870</a>     {
-<a class="jxr_linenumber" name="L871" href="#L871">871</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getSkinJarFile() != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L872" href="#L872">872</a>         {
-<a class="jxr_linenumber" name="L873" href="#L873">873</a>             ZipFile file = getZipFile( siteRenderingContext.getSkinJarFile() );
-<a class="jxr_linenumber" name="L874" href="#L874">874</a> 
-<a class="jxr_linenumber" name="L875" href="#L875">875</a>             <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L876" href="#L876">876</a>             {
-<a class="jxr_linenumber" name="L877" href="#L877">877</a>                 <strong class="jxr_keyword">for</strong> ( Enumeration&lt;? <strong class="jxr_keyword">extends</strong> ZipEntry&gt; e = file.entries(); e.hasMoreElements(); )
-<a class="jxr_linenumber" name="L878" href="#L878">878</a>                 {
-<a class="jxr_linenumber" name="L879" href="#L879">879</a>                     ZipEntry entry = e.nextElement();
-<a class="jxr_linenumber" name="L880" href="#L880">880</a> 
-<a class="jxr_linenumber" name="L881" href="#L881">881</a>                     <strong class="jxr_keyword">if</strong> ( !entry.getName().startsWith( <span class="jxr_string">"META-INF/"</span> ) )
-<a class="jxr_linenumber" name="L882" href="#L882">882</a>                     {
-<a class="jxr_linenumber" name="L883" href="#L883">883</a>                         File destFile = <strong class="jxr_keyword">new</strong> File( outputDirectory, entry.getName() );
-<a class="jxr_linenumber" name="L884" href="#L884">884</a>                         <strong class="jxr_keyword">if</strong> ( !entry.isDirectory() )
-<a class="jxr_linenumber" name="L885" href="#L885">885</a>                         {
-<a class="jxr_linenumber" name="L886" href="#L886">886</a>                             <strong class="jxr_keyword">if</strong> ( destFile.exists() )
-<a class="jxr_linenumber" name="L887" href="#L887">887</a>                             {
-<a class="jxr_linenumber" name="L888" href="#L888">888</a>                                 <em class="jxr_comment">// don't override existing content: avoids extra rewrite with same content or extra site</em>
-<a class="jxr_linenumber" name="L889" href="#L889">889</a>                                 <em class="jxr_comment">// resource</em>
-<a class="jxr_linenumber" name="L890" href="#L890">890</a>                                 <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="L891" href="#L891">891</a>                             }
+<a class="jxr_linenumber" name="L798" href="#L798">798</a>     <strong class="jxr_keyword">boolean</strong> matchVersion( String current, String prerequisite )
+<a class="jxr_linenumber" name="L799" href="#L799">799</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>
+<a class="jxr_linenumber" name="L800" href="#L800">800</a>     {
+<a class="jxr_linenumber" name="L801" href="#L801">801</a>         <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L802" href="#L802">802</a>         {
+<a class="jxr_linenumber" name="L803" href="#L803">803</a>             ArtifactVersion v = <strong class="jxr_keyword">new</strong> DefaultArtifactVersion( current );
+<a class="jxr_linenumber" name="L804" href="#L804">804</a>             VersionRange vr = VersionRange.createFromVersionSpec( prerequisite );
+<a class="jxr_linenumber" name="L805" href="#L805">805</a> 
+<a class="jxr_linenumber" name="L806" href="#L806">806</a>             <strong class="jxr_keyword">boolean</strong> matched = false;
+<a class="jxr_linenumber" name="L807" href="#L807">807</a>             ArtifactVersion recommendedVersion = vr.getRecommendedVersion();
+<a class="jxr_linenumber" name="L808" href="#L808">808</a>             <strong class="jxr_keyword">if</strong> ( recommendedVersion == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L809" href="#L809">809</a>             {
+<a class="jxr_linenumber" name="L810" href="#L810">810</a>                 List&lt;Restriction&gt; restrictions = vr.getRestrictions();
+<a class="jxr_linenumber" name="L811" href="#L811">811</a>                 <strong class="jxr_keyword">for</strong> ( Restriction restriction : restrictions )
+<a class="jxr_linenumber" name="L812" href="#L812">812</a>                 {
+<a class="jxr_linenumber" name="L813" href="#L813">813</a>                     <strong class="jxr_keyword">if</strong> ( restriction.containsVersion( v ) )
+<a class="jxr_linenumber" name="L814" href="#L814">814</a>                     {
+<a class="jxr_linenumber" name="L815" href="#L815">815</a>                         matched = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L816" href="#L816">816</a>                         <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="L817" href="#L817">817</a>                     }
+<a class="jxr_linenumber" name="L818" href="#L818">818</a>                 }
+<a class="jxr_linenumber" name="L819" href="#L819">819</a>             }
+<a class="jxr_linenumber" name="L820" href="#L820">820</a>             <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L821" href="#L821">821</a>             {
+<a class="jxr_linenumber" name="L822" href="#L822">822</a>                 <em class="jxr_comment">// only singular versions ever have a recommendedVersion</em>
+<a class="jxr_linenumber" name="L823" href="#L823">823</a>                 @SuppressWarnings( <span class="jxr_string">"unchecked"</span> )
+<a class="jxr_linenumber" name="L824" href="#L824">824</a>                 <strong class="jxr_keyword">int</strong> compareTo = recommendedVersion.compareTo( v );
+<a class="jxr_linenumber" name="L825" href="#L825">825</a>                 matched = ( compareTo &lt;= 0 );
+<a class="jxr_linenumber" name="L826" href="#L826">826</a>             }
+<a class="jxr_linenumber" name="L827" href="#L827">827</a> 
+<a class="jxr_linenumber" name="L828" href="#L828">828</a>             <strong class="jxr_keyword">if</strong> ( getLogger().isDebugEnabled() )
+<a class="jxr_linenumber" name="L829" href="#L829">829</a>             {
+<a class="jxr_linenumber" name="L830" href="#L830">830</a>                 getLogger().debug( <span class="jxr_string">"Skin doxia-sitetools prerequisite: "</span> + prerequisite + <span class="jxr_string">", current: "</span> + current
+<a class="jxr_linenumber" name="L831" href="#L831">831</a>                     + <span class="jxr_string">", matched = "</span> + matched );
+<a class="jxr_linenumber" name="L832" href="#L832">832</a>             }
+<a class="jxr_linenumber" name="L833" href="#L833">833</a> 
+<a class="jxr_linenumber" name="L834" href="#L834">834</a>             <strong class="jxr_keyword">return</strong> matched;
+<a class="jxr_linenumber" name="L835" href="#L835">835</a>         }
+<a class="jxr_linenumber" name="L836" href="#L836">836</a>         <strong class="jxr_keyword">catch</strong> ( InvalidVersionSpecificationException e )
+<a class="jxr_linenumber" name="L837" href="#L837">837</a>         {
+<a class="jxr_linenumber" name="L838" href="#L838">838</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/RendererException.html">RendererException</a>( <span class="jxr_string">"Invalid skin doxia-sitetools prerequisite: "</span> + prerequisite, e );
+<a class="jxr_linenumber" name="L839" href="#L839">839</a>         }
+<a class="jxr_linenumber" name="L840" href="#L840">840</a>     }
+<a class="jxr_linenumber" name="L841" href="#L841">841</a> 
+<a class="jxr_linenumber" name="L842" href="#L842">842</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L843" href="#L843">843</a>     @Deprecated
+<a class="jxr_linenumber" name="L844" href="#L844">844</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> createContextForTemplate( File templateFile, Map&lt;String, ?&gt; attributes,
+<a class="jxr_linenumber" name="L845" href="#L845">845</a>                                                           <a href="../../../../../org/apache/maven/doxia/site/decoration/DecorationModel.html">DecorationModel</a> decoration, String defaultWindowTitle,
+<a class="jxr_linenumber" name="L846" href="#L846">846</a>                                                           Locale locale )
+<a class="jxr_linenumber" name="L847" href="#L847">847</a>             <strong class="jxr_keyword">throws</strong> MalformedURLException
+<a class="jxr_linenumber" name="L848" href="#L848">848</a>     {
+<a class="jxr_linenumber" name="L849" href="#L849">849</a>         <a href="../../../../../org/apache/maven/doxia/siterenderer/SiteRenderingContext.html">SiteRenderingContext</a> context = createSiteRenderingContext( attributes, decoration, defaultWindowTitle, locale );
+<a class="jxr_linenumber" name="L850" href="#L850">850</a> 
+<a class="jxr_linenumber" name="L851" href="#L851">851</a>         context.setTemplateName( templateFile.getName() );
+<a class="jxr_linenumber" name="L852" href="#L852">852</a>         context.setTemplateClassLoader( <strong class="jxr_keyword">new</strong> URLClassLoader( <strong class="jxr_keyword">new</strong> URL[]{templateFile.getParentFile().toURI().toURL()} ) );
+<a class="jxr_linenumber" name="L853" href="#L853">853</a> 
+<a class="jxr_linenumber" name="L854" href="#L854">854</a>         <strong class="jxr_keyword">return</strong> context;
+<a class="jxr_linenumber" name="L855" href="#L855">855</a>     }
+<a class="jxr_linenumber" name="L856" href="#L856">856</a> 
+<a class="jxr_linenumber" name="L857" href="#L857">857</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L858" href="#L858">858</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> copyResources( SiteRenderingContext siteRenderingContext, File resourcesDirectory,
+<a class="jxr_linenumber" name="L859" href="#L859">859</a>                                File outputDirectory )
+<a class="jxr_linenumber" name="L860" href="#L860">860</a>         <strong class="jxr_keyword">throws</strong> IOException
+<a class="jxr_linenumber" name="L861" href="#L861">861</a>     {
+<a class="jxr_linenumber" name="L862" href="#L862">862</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> AssertionError( <span class="jxr_string">"copyResources( SiteRenderingContext, File, File ) is deprecated."</span> );
+<a class="jxr_linenumber" name="L863" href="#L863">863</a>     }
+<a class="jxr_linenumber" name="L864" href="#L864">864</a> 
+<a class="jxr_linenumber" name="L865" href="#L865">865</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L866" href="#L866">866</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> copyResources( SiteRenderingContext siteRenderingContext, File outputDirectory )
+<a class="jxr_linenumber" name="L867" href="#L867">867</a>         <strong class="jxr_keyword">throws</strong> IOException
+<a class="jxr_linenumber" name="L868" href="#L868">868</a>     {
+<a class="jxr_linenumber" name="L869" href="#L869">869</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.getSkinJarFile() != <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="L870" href="#L870">870</a>         {
+<a class="jxr_linenumber" name="L871" href="#L871">871</a>             ZipFile file = getZipFile( siteRenderingContext.getSkinJarFile() );
+<a class="jxr_linenumber" name="L872" href="#L872">872</a> 
+<a class="jxr_linenumber" name="L873" href="#L873">873</a>             <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L874" href="#L874">874</a>             {
+<a class="jxr_linenumber" name="L875" href="#L875">875</a>                 <strong class="jxr_keyword">for</strong> ( Enumeration&lt;? <strong class="jxr_keyword">extends</strong> ZipEntry&gt; e = file.entries(); e.hasMoreElements(); )
+<a class="jxr_linenumber" name="L876" href="#L876">876</a>                 {
+<a class="jxr_linenumber" name="L877" href="#L877">877</a>                     ZipEntry entry = e.nextElement();
+<a class="jxr_linenumber" name="L878" href="#L878">878</a> 
+<a class="jxr_linenumber" name="L879" href="#L879">879</a>                     <strong class="jxr_keyword">if</strong> ( !entry.getName().startsWith( <span class="jxr_string">"META-INF/"</span> ) )
+<a class="jxr_linenumber" name="L880" href="#L880">880</a>                     {
+<a class="jxr_linenumber" name="L881" href="#L881">881</a>                         File destFile = <strong class="jxr_keyword">new</strong> File( outputDirectory, entry.getName() );
+<a class="jxr_linenumber" name="L882" href="#L882">882</a>                         <strong class="jxr_keyword">if</strong> ( !entry.isDirectory() )
+<a class="jxr_linenumber" name="L883" href="#L883">883</a>                         {
+<a class="jxr_linenumber" name="L884" href="#L884">884</a>                             <strong class="jxr_keyword">if</strong> ( destFile.exists() )
+<a class="jxr_linenumber" name="L885" href="#L885">885</a>                             {
+<a class="jxr_linenumber" name="L886" href="#L886">886</a>                                 <em class="jxr_comment">// don't override existing content: avoids extra rewrite with same content or extra site</em>
+<a class="jxr_linenumber" name="L887" href="#L887">887</a>                                 <em class="jxr_comment">// resource</em>
+<a class="jxr_linenumber" name="L888" href="#L888">888</a>                                 <strong class="jxr_keyword">continue</strong>;
+<a class="jxr_linenumber" name="L889" href="#L889">889</a>                             }
+<a class="jxr_linenumber" name="L890" href="#L890">890</a> 
+<a class="jxr_linenumber" name="L891" href="#L891">891</a>                             destFile.getParentFile().mkdirs();
 <a class="jxr_linenumber" name="L892" href="#L892">892</a> 
-<a class="jxr_linenumber" name="L893" href="#L893">893</a>                             destFile.getParentFile().mkdirs();
-<a class="jxr_linenumber" name="L894" href="#L894">894</a> 
-<a class="jxr_linenumber" name="L895" href="#L895">895</a>                             copyFileFromZip( file, entry, destFile );
-<a class="jxr_linenumber" name="L896" href="#L896">896</a>                         }
-<a class="jxr_linenumber" name="L897" href="#L897">897</a>                         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L898" href="#L898">898</a>                         {
-<a class="jxr_linenumber" name="L899" href="#L899">899</a>                             destFile.mkdirs();
-<a class="jxr_linenumber" name="L900" href="#L900">900</a>                         }
-<a class="jxr_linenumber" name="L901" href="#L901">901</a>                     }
-<a class="jxr_linenumber" name="L902" href="#L902">902</a>                 }
-<a class="jxr_linenumber" name="L903" href="#L903">903</a>             }
-<a class="jxr_linenumber" name="L904" href="#L904">904</a>             <strong class="jxr_keyword">finally</strong>
-<a class="jxr_linenumber" name="L905" href="#L905">905</a>             {
-<a class="jxr_linenumber" name="L906" href="#L906">906</a>                 closeZipFile( file );
-<a class="jxr_linenumber" name="L907" href="#L907">907</a>             }
-<a class="jxr_linenumber" name="L908" href="#L908">908</a>         }
-<a class="jxr_linenumber" name="L909" href="#L909">909</a> 
-<a class="jxr_linenumber" name="L910" href="#L910">910</a>         <strong class="jxr_keyword">if</strong> ( siteRenderingContext.isUsingDefaultTemplate() )
-<a class="jxr_linenumber" name="L911" href="#L911">911</a>         {
-<a class="jxr_linenumber" name="L912" href="#L912">912</a>             InputStream resourceList = getClass().getClassLoader()
-<a class="jxr_linenumber" name="L913" href="#L913">913</a>                     .getResourceAsStream( RESOURCE_DIR + <span class="jxr_string">"/resources.txt"</span> );
-<a class="jxr_linenumber" name="L914" href="#L914">914</a> 

[... 457 lines stripped ...]



Mime
View raw message