-
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 : We are not setting the "auxclasspath" as mentioned in the guide here : However, looking at the code : 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, Affects PMD Version:
Running PMD through: [Ant] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@fflatorre over the last few releases the feature has matured a lot. Currently the cache is completely invalidated if
So, under current releases, both the auxclasspath AND the java classpath invalidates the cache. Moreover, the old code just checked the value of the auxclasspath (file1.jar:file2.jar), but current releases actually check both the order and the contents. Let me know if you have any questions |
Beta Was this translation helpful? Give feedback.
-
Cheers @jsotuyod I got lost between releases. Great job ! |
Beta Was this translation helpful? Give feedback.
@fflatorre over the last few releases the feature has matured a lot. Currently the cache is completely invalidated if
pmd/pmd-core/src/main/java/net/sourceforge/pmd/cache/AbstractAnalysisCache.java
Line 107 in 798c027
pmd/pmd-core/src/main/java/net/sourceforge/pmd/cache/AbstractAnalysisCache.java
Line 120 in 798c027
pmd/pmd-core/src/main/java/net/sourceforge/pmd/cache/AbstractAnalysisCache.java
Line 132 in 798c027