You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ah...@apache.org on 2006/03/11 18:14:49 UTC

svn commit: r385109 - /maven/maven-1/plugins/trunk/linkcheck/src/plugin-resources/linkcheck.jsl

Author: aheritier
Date: Sat Mar 11 09:14:46 2006
New Revision: 385109

URL: http://svn.apache.org/viewcvs?rev=385109&view=rev
Log:
Fix test using Jelly instead of xpath

Modified:
    maven/maven-1/plugins/trunk/linkcheck/src/plugin-resources/linkcheck.jsl

Modified: maven/maven-1/plugins/trunk/linkcheck/src/plugin-resources/linkcheck.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/linkcheck/src/plugin-resources/linkcheck.jsl?rev=385109&r1=385108&r2=385109&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/linkcheck/src/plugin-resources/linkcheck.jsl (original)
+++ maven/maven-1/plugins/trunk/linkcheck/src/plugin-resources/linkcheck.jsl Sat Mar 11 09:14:46 2006
@@ -35,7 +35,8 @@
       <body>
         <section name="Link Check Report">
           <p><b><span style="color:#00AA00;text-align:right"><x:expr select="count(file)"/> </span></b> file(s) and <b><span style="color:#00AA00;text-align:right"><x:expr select="sum(file/unsuccessful)+sum(file/successful)"/> </span></b> link(s) checked. <b><span style="color:#FF0000;text-align:right"><x:expr select="count(file/result[status='error'])"/></span></b> error(s) and <b><span style="color:#FFA916;text-align:right"><x:expr select="count(file/result[status='warning'])"/></span></b> warning(s) reported in <b><span style="color:#00AA00;text-align:right"><x:expr select="count(file[unsuccessful!=0])"/> </span></b> file(s).</p>
-          <x:if select="count(file[unsuccessful!=0]) gt 0">
+          <j:set var="nbFilesInError"><x:expr select="count(file[unsuccessful!=0])"/></j:set>
+          <j:if test="${nbFilesInError gt 0}">
           <table summary="Link Check summary">
             <thead>
               <tr>
@@ -76,7 +77,7 @@
             </x:forEach>
             </tbody>
           </table>
-          </x:if>
+          </j:if>
         </section>
       </body>
     </document>