diff options
Diffstat (limited to 'src/main/scala-sbt-0.13/Compat.scala')
-rw-r--r-- | src/main/scala-sbt-0.13/Compat.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/scala-sbt-0.13/Compat.scala b/src/main/scala-sbt-0.13/Compat.scala new file mode 100644 index 0000000..6138f7c --- /dev/null +++ b/src/main/scala-sbt-0.13/Compat.scala @@ -0,0 +1,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 boilerplateSource = settingKey[File]("Default directory containing boilerplate template sources.") + private val inputFilter = "*.template" + + def allPaths(f: File) = f.*** + + def watchSourceSettings = Def.settings { + Seq(watchSources in Defaults.ConfigGlobal ++= ((boilerplateSource.value ** inputFilter) --- (boilerplateSource.value ** excludeFilter.value ** inputFilter)).get) + } +} |