mirror of
https://github.com/sbt/sbt.git
synced 2026-09-06 09:37:02 +02:00
Exclude directories instead of including files
The existing filter caused SourceModificationWatch.watch to ignore deleted files because !file.exists implies !file.isFile. The intention of the filter was to exclude directories that had a name ending in ".scala".
This commit is contained in:
@@ -162,8 +162,7 @@ object Defaults extends BuildCommon {
|
||||
artifactClassifier in packageSrc :== Some(SourceClassifier),
|
||||
artifactClassifier in packageDoc :== Some(DocClassifier),
|
||||
includeFilter :== NothingFilter,
|
||||
includeFilter in unmanagedSources :== ("*.java" | "*.scala") && new SimpleFileFilter(
|
||||
_.isFile),
|
||||
includeFilter in unmanagedSources :== ("*.java" | "*.scala") -- DirectoryFilter,
|
||||
includeFilter in unmanagedJars :== "*.jar" | "*.so" | "*.dll" | "*.jnilib" | "*.zip",
|
||||
includeFilter in unmanagedResources :== AllPassFilter,
|
||||
bgList := { bgJobService.value.jobs },
|
||||
|
||||
Reference in New Issue
Block a user