vmassol 2004/09/06 09:56:50 Modified: dashboard/xdocs changes.xml aggregators.xml dashboard project.xml plugin.properties dashboard/src/plugin-test project.properties dashboard/src/plugin-test/subproject1 project.xml Added: dashboard/src/plugin-resources/aggregators jcoveragelipc.jelly Log: Added new <code>jcoveragelipc</code> aggregator that computes JCoverage lines percentage. Revision Changes Path 1.24 +6 -0 maven-plugins/dashboard/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/maven-plugins/dashboard/xdocs/changes.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- changes.xml 15 Aug 2004 13:13:13 -0000 1.23 +++ changes.xml 6 Sep 2004 16:56:50 -0000 1.24 @@ -24,6 +24,12 @@ <author email="[EMAIL PROTECTED]">Vincent Massol</author> </properties> <body> + <release version="1.5-SNAPSHOT" date="in CVS"> + <action dev="vmassol" type="add" issue="MPDASHBOARD-11" due-to="Thomas Recloux"> + Added new <code>jcoveragelipc</code> aggregator that computes JCoverage + lines percentage. + </action> + </release> <release version="1.4" date="2004-08-15"> <action dev="vmassol" type="fix" issue="MPDASHBOARD-8" due-to="Carlos Sanchez">Fixed documentation regarding the <code>maven.dashboard.rungoals</code>property. 1.9 +7 -0 maven-plugins/dashboard/xdocs/aggregators.xml Index: aggregators.xml =================================================================== RCS file: /home/cvs/maven-plugins/dashboard/xdocs/aggregators.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- aggregators.xml 25 Jul 2004 07:38:49 -0000 1.8 +++ aggregators.xml 6 Sep 2004 16:56:50 -0000 1.9 @@ -137,6 +137,13 @@ Total number of duplicate lines found by Simian. </td> </tr> + <tr> + <td>jcoveragelipc</td> + <td>JCoverage</td> + <td> + Total percentage of lines covered. + </td> + </tr> </table> </section> </body> 1.24 +1 -1 maven-plugins/dashboard/project.xml Index: project.xml =================================================================== RCS file: /home/cvs/maven-plugins/dashboard/project.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- project.xml 15 Aug 2004 13:13:13 -0000 1.23 +++ project.xml 6 Sep 2004 16:56:50 -0000 1.24 @@ -23,7 +23,7 @@ <pomVersion>3</pomVersion> <id>maven-dashboard-plugin</id> <name>Maven Dashboard Plugin</name> - <currentVersion>1.4</currentVersion> + <currentVersion>1.5-SNAPSHOT</currentVersion> <description>Generate a dashboard containing global statistics about other maven reports</description> <shortDescription>Generate a statistic dashboard</shortDescription> <url>http://maven.apache.org/reference/plugins/dashboard/</url> 1.10 +7 -0 maven-plugins/dashboard/plugin.properties Index: plugin.properties =================================================================== RCS file: /home/cvs/maven-plugins/dashboard/plugin.properties,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- plugin.properties 25 Jul 2004 07:38:50 -0000 1.9 +++ plugin.properties 6 Sep 2004 16:56:50 -0000 1.10 @@ -175,3 +175,10 @@ maven.dashboard.aggregator.simiantdl.label = Simian TDL maven.dashboard.aggregator.simiantdl.goal = maven-simian-plugin:report maven.dashboard.aggregator.simiantdl.description = Simian Total Duplicate Lines + +# Properties for the JCoverage covered lines percent aggregator +maven.dashboard.aggregator.jcoveragelipc.script = ${maven.dashboard.aggregators.dir}/jcoveragelipc.jelly +maven.dashboard.aggregator.jcoveragelipc.artifact = ${maven.build.dir}/jcoverage/coverage.xml +maven.dashboard.aggregator.jcoveragelipc.label = JCoverage %lines +maven.dashboard.aggregator.jcoveragelipc.goal = maven-jcoverage-plugin:report +maven.dashboard.aggregator.jcoveragelipc.description = JCoverage covered lines percentile 1.1 maven-plugins/dashboard/src/plugin-resources/aggregators/jcoveragelipc.jelly Index: jcoveragelipc.jelly =================================================================== <?xml version="1.0"?> <!-- /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <!-- ======================================================================== JCoverage aggregator. Extracts JCoverage %lines. ======================================================================== --> <j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util"> <u:file var="artifactAsFile" name="${maven.dashboard.aggregator.jcoveragelipc.artifact}"/> <j:choose> <j:when test="${artifactAsFile.exists()}"> <x:parse var="doc" xml="${artifactAsFile}"/> <x:expr select="floor(100*count($doc/coverage/class/[EMAIL PROTECTED]>0]) div count($doc/coverage/class/[EMAIL PROTECTED]>0])+0.5)"/> % </j:when> <j:otherwise> <j:expr value="-"/> </j:otherwise> </j:choose> </j:jelly> 1.15 +1 -1 maven-plugins/dashboard/src/plugin-test/project.properties Index: project.properties =================================================================== RCS file: /home/cvs/maven-plugins/dashboard/src/plugin-test/project.properties,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- project.properties 25 Jul 2004 07:38:50 -0000 1.14 +++ project.properties 6 Sep 2004 16:56:50 -0000 1.15 @@ -36,7 +36,7 @@ # Define what dashboard aggregators will be run. This property is inherited # by the subprojects and thus they don't need to define it again. -maven.dashboard.aggregators = csall,cserrors,cswarnings,csfiles,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl,pmdfiles,pmdviolations +maven.dashboard.aggregators = csall,cserrors,cswarnings,csfiles,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl,pmdfiles,pmdviolations,jcoveragelipc # Make sure that an XML report is generated whenever Clover is run. Also # inherited by the subprojects. 1.6 +1 -0 maven-plugins/dashboard/src/plugin-test/subproject1/project.xml Index: project.xml =================================================================== RCS file: /home/cvs/maven-plugins/dashboard/src/plugin-test/subproject1/project.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- project.xml 30 Apr 2004 12:31:14 -0000 1.5 +++ project.xml 6 Sep 2004 16:56:50 -0000 1.6 @@ -39,5 +39,6 @@ <report>maven-clover-plugin</report> <report>maven-junit-report-plugin</report> <report>maven-simian-plugin</report> + <report>maven-jcoverage-plugin</report> </reports> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]