You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2006/04/13 00:55:41 UTC

svn commit: r393637 - in /maven/maven-1/plugins/trunk/junit-report: plugin.jelly xdocs/changes.xml xdocs/properties.xml

Author: ltheussl
Date: Wed Apr 12 15:55:35 2006
New Revision: 393637

URL: http://svn.apache.org/viewcvs?rev=393637&view=rev
Log:
PR: MPJUNITREPORT-10
Add ability to specify a custom jsl transform.
New property maven.junit.report.jsl.


Modified:
    maven/maven-1/plugins/trunk/junit-report/plugin.jelly
    maven/maven-1/plugins/trunk/junit-report/xdocs/changes.xml
    maven/maven-1/plugins/trunk/junit-report/xdocs/properties.xml

Modified: maven/maven-1/plugins/trunk/junit-report/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/junit-report/plugin.jelly?rev=393637&r1=393636&r2=393637&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/junit-report/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/junit-report/plugin.jelly Wed Apr 12 15:55:35 2006
@@ -75,10 +75,15 @@
         </ant:fileset>
       </ant:junitreport>
 
+      <j:set var="stylesheet" value="${maven.junit.report.jsl}"/>
+      <j:if test="${empty(stylesheet)}">
+        <j:set var="stylesheet" value="${plugin.resources}/junit.jsl"/>
+      </j:if>
+
       <doc:jsl
         input="${maven.build.dir}/TESTS-TestSuites.xml"
         output="junit-report.xml"
-        stylesheet="${plugin.resources}/junit.jsl"
+        stylesheet="${stylesheet}"
         outputMode="xml"
         prettyPrint="false"
       />

Modified: maven/maven-1/plugins/trunk/junit-report/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/junit-report/xdocs/changes.xml?rev=393637&r1=393636&r2=393637&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/junit-report/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/junit-report/xdocs/changes.xml Wed Apr 12 15:55:35 2006
@@ -26,6 +26,7 @@
   </properties>
   <body>
     <release version="1.5.1-SNAPSHOT" date="in SVN">
+      <action dev="ltheussl" type="add" issue="MPJUNITREPORT-10">Add ability to specify a custom jsl transform. New property <code>maven.junit.report.jsl</code>.</action>
       <action dev="ltheussl" type="add" issue="MPJUNITREPORT-11" due-to="Cyrille Le Clerc">Keep nested exceptions in truncated stack traces.</action>
       <action dev="ltheussl" type="add" issue="MPJUNITREPORT-6" due-to="Cyrille Le Clerc">Include System.out/System.err in the generated report.</action>
       <action dev="ltheussl" type="fix" issue="MPJUNITREPORT-8">Add description for default goal.</action>

Modified: maven/maven-1/plugins/trunk/junit-report/xdocs/properties.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/junit-report/xdocs/properties.xml?rev=393637&r1=393636&r2=393637&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/junit-report/xdocs/properties.xml (original)
+++ maven/maven-1/plugins/trunk/junit-report/xdocs/properties.xml Wed Apr 12 15:55:35 2006
@@ -32,6 +32,16 @@
           <th>Description</th>
         </tr>
         <tr>
+          <td>maven.junit.report.jsl</td>
+          <td>Yes</td>
+          <td>
+            <p>
+              Absolute path to a custom jelly style sheet
+              used to generate the report.
+            </p>
+          </td>
+        </tr>
+        <tr>
           <td>maven.conf.dir</td>
           <td>Yes</td>
           <td>