mirror of https://github.com/sbt/sbt.git
**Problem** When sourceManaged or resourceManaged is set to a path outside the target directory, neither clean nor managedSourcePaths/clean removes the generated files. The cleanFileOutputTask has a hard guard that skips any file not inside the target directory, even though these files are tracked via the previous mechanism and were produced by the task itself. **Solution** Replace the targetDir guard in cleanFileOutputTask with a baseDirectory guard. Files tracked by previous are task-produced outputs that are safe to delete as long as they are within the project root. The cleanKeepFiles/cleanKeepGlobs filter still applies for user-specified exclusions. Fixes #6895 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||