java.lang.IllegalStateException: basedir c:\Work\testcases\easymock\.cloverhistory does not exist.

Atlassian JIRA | Jacek Jaroczynski [Atlassian] Bugmaster | 4 years ago
  1. 0

    Please investigate. One of the possible solutions could be to change relative path to absolute. CloverReportMojo: {code} 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);// } {code} When called from ant with historyDir set to non-existing directory: {code} 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) {code}

    Atlassian JIRA | 4 years ago | Jacek Jaroczynski [Atlassian] Bugmaster
    java.lang.IllegalStateException: basedir c:\Work\testcases\easymock\.cloverhistory does not exist.
  2. 0

    Please investigate. One of the possible solutions could be to change relative path to absolute. CloverReportMojo: {code} 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);// } {code} When called from ant with historyDir set to non-existing directory: {code} 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) {code}

    Atlassian JIRA | 4 years ago | Jacek Jaroczynski [Atlassian] Bugmaster
    java.lang.IllegalStateException: basedir c:\Work\testcases\easymock\.cloverhistory does not exist.
  3. 0

    Plugin only check Jenkins master server for target cucumber.json directory and not the build agent

    GitHub | 5 years ago | powersfoss
    java.lang.IllegalStateException: basedir d:\JenkinsBuildAgent\workspace\MyApp\target does not exist.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 10#5935156

    GitHub | 5 years ago | kingsleyh
    java.lang.IllegalStateException: basedir d:\JenkinsBuildAgent\workspace\MyApp\target does not exist.
  6. 0

    [JENKINS-15463] JaCoCo Jenkins plugin does not work on a linux slave - Jenkins JIRA

    jenkins-ci.org | 5 months ago
    java.lang.IllegalStateException: basedir \usr\local\jenkins\workspace\carmel-commons does not exist.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      basedir c:\Work\testcases\easymock\.cloverhistory does not exist.

      at org.apache.tools.ant.DirectoryScanner.scan()
    2. Ant
      DirectoryScanner.scan
      1. org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879)
      1 frame
    3. com.cenqua.clover
      AbstractCloverTask.execute
      1. com.cenqua.clover.tasks.CloverReportTask$HistoricalEx.processHistoryIncludes(CloverReportTask.java:274)
      2. com.cenqua.clover.tasks.CloverReportTask$HistoricalEx.processHistoryIncludes(CloverReportTask.java:261)
      3. com.cenqua.clover.tasks.CloverReportTask$HistoricalEx.resolve(CloverReportTask.java:241)
      4. com.cenqua.clover.tasks.CloverReportTask.cloverExecute(CloverReportTask.java:340)
      5. com.cenqua.clover.tasks.AbstractCloverTask.execute(AbstractCloverTask.java:55)
      5 frames
    4. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames