mirror of https://github.com/sbt/sbt.git
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:
parent
a8c1239e32
commit
2bb717dbf9
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue