Hi I'm a developer of Gradle and recently I found there might be some issue in pmd plugin. If I turn on the incremental analysis, some files wouldn't be closed correctly on Windows .
To reproduce it, you should have a windows machine. Mine is Windows 7. Here're the steps:
blindpirate/pmd-issue
branch of https://github.com/gradle/gradle./gradlew codeQuality:integTest --tests '*WithIA*'
, this will run the WithIA.groovy
, two simple tests with incremental analysis on. And it results in the error:java.io.IOException: Unable to delete file: C:\tcagent1\work\6031ced305d8bea4\subprojects\code-quality\build\tmp\test files\PmdPluginIncrementalAnalysisIntegrationTest\incremental_analysi...e_enabled\p9laj\src\main\java\org\gradle\GoodClass.java
Looks like some files are not closed correctly, so the cleanup failed. As a comparison, you can run ./gradlew codeQuality:integTest --tests '*WithoutIA*'
, this will run the WithoutIA.groovy
and everything works well, the only difference is that this test turn off the incremental analysis.
I'm not familiar with pmd, so I'm here for help, is there any possibility of not closing file correctly?
@jsotuyod Could you help me?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4