aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala-sbt-0.13/Compat.scala
blob: 1756b20a112b7b47c8fcafe15d8b4941e96f271f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * sbt-boilerplate is distributed under the 2-Clause BSD license. See the LICENSE file in the root
 * of the repository.
 *
 * Copyright (c) 2012-2016 Johannes Rudolph
 */
package spray.boilerplate

import sbt._
import Keys._

object Compat {
  private val boilerplateSourceDirectories = settingKey[Seq[File]]("Directories containing boilerplate template sources.")
  private val inputFilter = "*.template"

  def allPaths(f: File) = f.***

  def watchSourceSettings = Def.settings {
    Seq(watchSources in Defaults.ConfigGlobal ++= ((boilerplateSourceDirectories.value ** inputFilter) --- (boilerplateSourceDirectories.value ** excludeFilter.value ** inputFilter)).get)
  }
}