Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1290

Clover history report generation may not work with multimodule maven project and relative historyDir path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.12
    • Component/s: None
    • Labels:
      None

      Description

      Please investigate. One of the possible solutions could be to change relative path to absolute.

      CloverReportMojo:

      private boolean isHistoricalDirectoryValid(String outFile) {
              boolean isValid = false;
              File dir
              if (!new File(this.historyDir).isAbsolute()) {
                   dir = new File(project.getBasedir(), this.historyDir);
              } else {
                   dir = new File(this.historyDir);//
              }
      

      When called from ant with historyDir set to non-existing directory:

      BUILD FAILED
      c:\Work\testcases\easymock\build.xml:71: java.lang.IllegalStateException: basedir c:\Work\testcases\easymock\.cloverhistory does not exist.
              at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879)
              at com.cenqua.clover.tasks.CloverReportTask$HistoricalEx.processHistoryIncludes(CloverReportTask.java:274)
              at com.cenqua.clover.tasks.CloverReportTask$HistoricalEx.processHistoryIncludes(CloverReportTask.java:261)
              at com.cenqua.clover.tasks.CloverReportTask$HistoricalEx.resolve(CloverReportTask.java:241)
              at com.cenqua.clover.tasks.CloverReportTask.cloverExecute(CloverReportTask.java:340)
              at com.cenqua.clover.tasks.AbstractCloverTask.execute(AbstractCloverTask.java:55)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjaroczynski Jacek Jaroczynski (Inactive)
              Reporter:
              jjaroczynski Jacek Jaroczynski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: