=sbt Make use of File.separatorChar to avoid exception. (#80)
This commit is contained in:
parent
573cdf4fa6
commit
f26dfd92a6
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ object PekkoValidatePullRequest extends AutoPlugin {
|
|||
|
||||
loadedBuild.value.allProjectRefs.collect {
|
||||
case (_, project) if !ignoredProjects.contains(project.id) =>
|
||||
val directory = project.base.getPath.split("/").last
|
||||
val directory = project.base.getPath.split(java.io.File.separatorChar).last
|
||||
PathGlobFilter(s"$directory/**")
|
||||
}.fold(new FileFilter { // TODO: Replace with FileFilter.nothing when https://github.com/sbt/io/pull/340 gets released
|
||||
override def accept(pathname: File): Boolean = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue