This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[java] Cache invalidation - auxClasspath or classpath? #1025
Labels
a:question
Request for information that doesn't necessarily entail changes to the code base
Please tag this issue as a question.
Hi,
I'm trying to gt my head around on when the cache gets invalidated.
In the official documentation, among the other reasons, it's mentioned teh cache is invalidated for a change in the auxclasspath :
https://pmd.github.io/pmd-6.0.0/pmd_release_notes_old.html#22-april-2017---560
We are not setting the "auxclasspath" as mentioned in the guide here :
https://pmd.github.io/pmd-6.2.0/pmd_userdocs_tools_ant.html
However, looking at the code :
https://github.com/pmd/pmd/blob/71df067a0dbd27ef78e4c82ca7cc58fd138f65c3/pmd-core/src/main/java/net/sourceforge/pmd/cache/FileAnalysisCache.java
it looks like that is the classpath instead that gets check-summed and then persisted/retrieved from the cache file.
Can anyone please clarify this aspect ?
Cheers,
Francesco
Affects PMD Version:
6.2.0
Rule:
NA
Description:
NA
Code Sample demonstrating the issue:
Running PMD through: [Ant]
The text was updated successfully, but these errors were encountered: