maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1729058 - /maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
Date Mon, 08 Feb 2016 00:11:34 GMT
Author: hboutemy
Date: Mon Feb  8 00:11:34 2016
New Revision: 1729058

URL: http://svn.apache.org/viewvc?rev=1729058&view=rev
Log:
[DOXIASITETOOLS-149] updated code for new exception thrown

Modified:
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java?rev=1729058&r1=1729057&r2=1729058&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
Mon Feb  8 00:11:34 2016
@@ -326,14 +326,19 @@ public abstract class AbstractSiteRender
                 getLog().info( "Rendering site with " + skinArtifact.getId() + " skin." );
 
                 skinFile = skinArtifact.getFile();
+
+                context = siteRenderer.createContextForSkin( skinFile, attributes, decorationModel,
project.getName(),
+                                                             locale );
             }
             catch ( SiteToolException e )
             {
                 throw new MojoExecutionException( "SiteToolException while preparing skin:
" + e.getMessage(), e );
             }
-
-            context = siteRenderer.createContextForSkin( skinFile, attributes, decorationModel,
project.getName(),
-                                                         locale );
+            catch ( RendererException e )
+            {
+                throw new MojoExecutionException( "RendererException while preparing context
for skin: "
+                    + e.getMessage(), e );
+            }
         }
 
         // Generate static site



Mime
View raw message