maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Jacob (JIRA)" <>
Subject [jira] Commented: (MPCLOVER-31) Add PDF report support
Date Mon, 04 Apr 2005 12:42:56 GMT
     [ ]
Olivier Jacob commented on MPCLOVER-31:

Here is a proposition for this feature :

<goal name="clover:report" prereqs="clover:init" description="Generates the Clover reports">
  <!-- Skip reports if no coverage database has been created. -->
  <u:file var="cloverDatabaseAsFile" name="${maven.clover.database}"/>
    <j:when test="${cloverDatabaseAsFile.exists()}">
      <j:if test="${context.getVariable('') == 'true'}">
        <attainGoal name="clover:pdf-report-internal"/>

  Generate PDF test coverage 
<goal name="clover:pdf-report-internal">
  <j:set var="cloverReportDirectory" value="${}/clover"/>
  <j:set var="cloverPDFReportFile" value="${cloverReportDirectory}/clover-report.pdf"/>
  <ant:mkdir dir="${cloverReportDirectory}"/>
    <ant:current outfile="${cloverPDFReportFile}" title="${} - ${pom.currentVersion}"
      <ant:format type="pdf" orderBy="${maven.clover.orderBy}">
        <!-- Add context filtering -->
        <j:set var="contextFilters" value="${maven.clover.context.method.names} ${maven.clover.context.statement.names}
        <j:if test="${!empty(contextFilters.trim())}">
          <ant:setProperty name="filter" value="${contextFilters}"/>
    <!-- Only generate history report if there is at least one history point -->
    <j:if test="${historyDirAsFile.exists() and !empty(historyDirAsFile.listFiles())}">
      <j:set var="cloverHistoryReportDirectory" value="${}/clover/history"/>
      <j:set var="cloverPDFHistoricalReportFile" value="${cloverReportDirectory}/clover-history-report.pdf"/>
      <ant:mkdir dir="${cloverHistoryReportDirectory}"/>
      <ant:historical outfile="${cloverPDFHistoryReportFile}" historyDir="${maven.clover.history.dir}"
title="${} - ${pom.currentVersion} - History">
        <ant:format type="pdf"/>
<goal name="clover:pdf-report" description="Generate PDF test coverage reports with Clover"

New property : (true|false)

Does it fit the need ?


> Add PDF report support
> ----------------------
>          Key: MPCLOVER-31
>          URL:
>      Project: maven-clover-plugin
>         Type: New Feature
>     Versions: 1.7
>     Reporter: Vincent Massol


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message