IncludeFilter and ExcludeFilter not working?
jvican opened this issue · comments
Jorge commented
I want to prevent some files from being removed. Despite several attempts to get it working, I may have found out that includeFilter
s and excludeFilter
are not working as expected. I'm adding these settings to my project:
.settings(
ghpages.settings,
git.remoteRepo := "git@github.com:scalacenter/repo",
includeFilter in GhPagesKeys.cleanSite := NothingFilter,
excludeFilter in GhPagesKeys.cleanSite := AllPassFilter
)
Even though I'm including Nothing and excluding everything, the task ghpagesCleanSite
removes everything in the repo when it's executed. This is weird. Am I missing something here? I've seen the source code and everything looks fine.
timothy commented
I've the same issue because docs describe includeFilters
and excludeFilter
for sbt-ghpages >= 0.5.5-SNAPSHOT, not the current version 0.5.4.