PR: MPSITE-50

Submitted by: Shinobu Kawai
New property maven.site.reports.ignoreErrors to ignore any errors
in all reports during site generation.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@392015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl
2006-04-06 17:04:14 +00:00
parent 382e998daf
commit 8d52944219
4 changed files with 30 additions and 1 deletions

View File

@@ -47,7 +47,21 @@
<j:set var="reportName" value="${report.get('pluginName')}"/>
<j:if test="${!empty(reportName)}">
<echo>Generating the ${report.get('name')}...</echo>
<attainGoal name="${reportName}:report"/>
<j:choose>
<j:when test="${context.getVariable('maven.site.reports.ignoreErrors') == 'false'}">
<attainGoal name="${reportName}:report"/>
</j:when>
<j:otherwise>
<j:catch var="ex">
<attainGoal name="${reportName}:report"/>
</j:catch>
<j:if test="${ex != null}">
<echo> *** WARNING: Error ignored: ${ex}</echo>
</j:if>
</j:otherwise>
</j:choose>
</j:if>
</j:forEach>
</goal>

View File

@@ -33,6 +33,7 @@ maven.site.gunzip.options=-fn
maven.site.chmod.options=-Rf
maven.site.chmod.mode=775
maven.site.failonerror=true
maven.site.reports.ignoreErrors=false
maven.rsync.executable=rsync

View File

@@ -23,6 +23,7 @@
</properties>
<body>
<release version="1.7-SNAPSHOT" date="In SVN">
<action dev="ltheussl" type="add" issue="MPSITE-50" due-to="Shinobu Kawai">New property <code>maven.site.reports.ignoreErrors</code> to ignore any errors in all reports during site generation.</action>
<action dev="aheritier" type="add">New property <code>maven.site.gunzip.options</code> can be used to set options when using gunzip (default value is -f).</action>
<action dev="ltheussl" type="fix" issue="MPSITE-40">Missing <code>maven.ssh.args</code> in <code>site:publish</code>.</action>
<action dev="aheritier" type="fix" issue="MPSITE-39">Deploy site on unix create rights rwxr-xr-x. Group members can't override files. The default value for <code>maven.site.chmod.mode</code> is now <code>755</code>.</action>

View File

@@ -190,6 +190,19 @@
Defaults to <code>true</code>.
</td>
</tr>
<tr>
<td>maven.site.reports.ignoreErrors</td>
<td>Yes</td>
<td>
Set this to <code>true</code> to ignore any errors
in all reports during site generation.
<strong>Note</strong> that this overrides all
corresponding settings of the plugins used
to generate the reports and
might lead to broken links on your site.
Defaults to <code>false</code>.
</td>
</tr>
</table>
</section>
<section name="Using Putty as ssh client">