[Created] (MPMD-255) Handle missing analysisCacheLocation file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Created] (MPMD-255) Handle missing analysisCacheLocation file

JIRA jira@apache.org
Matt Nelson created MPMD-255:
--------------------------------

             Summary: Handle missing analysisCacheLocation file
                 Key: MPMD-255
                 URL: https://issues.apache.org/jira/browse/MPMD-255
             Project: Maven PMD Plugin
          Issue Type: Improvement
          Components: PMD
            Reporter: Matt Nelson


When the {{analysisCacheLocation}} file is missing the error is not clear it is the reason for the failure. Can a more descriptive message be added? Or log a warning and proceed to build without the cache.

{noformat}
Caused by: java.io.FileNotFoundException: my-project\target\classes (The system cannot find the file specified)
    at java.io.FileInputStream.open0 (Native Method)
    at java.io.FileInputStream.open (FileInputStream.java:195)
    at java.io.FileInputStream.<init> (FileInputStream.java:138)
    at java.io.FileInputStream.<init> (FileInputStream.java:93)
    at sun.net.www.protocol.file.FileURLConnection.connect (FileURLConnection.java:90)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream (FileURLConnection.java:188)
    at java.net.URL.openStream (URL.java:1045)
    at net.sourceforge.pmd.cache.AbstractAnalysisCache.computeClassPathHash (AbstractAnalysisCache.java:182)
    at net.sourceforge.pmd.cache.AbstractAnalysisCache.checkValidity (AbstractAnalysisCache.java:113)
    at net.sourceforge.pmd.processor.AbstractPMDProcessor.processFiles (AbstractPMDProcessor.java:105)
    at net.sourceforge.pmd.PMD.processFiles (PMD.java:311)
    at org.apache.maven.plugins.pmd.PmdReport.processFilesWithPMD (PmdReport.java:503)
    at org.apache.maven.plugins.pmd.PmdReport.executePmd (PmdReport.java:432)
    at org.apache.maven.plugins.pmd.PmdReport.executePmdWithClassloader (PmdReport.java:331)
    at org.apache.maven.plugins.pmd.PmdReport.canGenerateReport (PmdReport.java:305)
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)