Skip to content

Instantly share code, notes, and snippets.

@tototoshi
Created February 15, 2013 03:19
Show Gist options
  • Save tototoshi/4958335 to your computer and use it in GitHub Desktop.
Save tototoshi/4958335 to your computer and use it in GitHub Desktop.
こんな感じで watchSources に含めないファイルのパターンをどっかで設定したい
import sbt._,Keys._
import PlayProject._
object Build extends sbt.Build {
val appName = "hoge"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq (
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang=SCALA).settings(
watchSources ~= {
val patterns = io.Source.fromFile(".playignore").getLines........
_.filterNot(f => patterns.match(f))
)}
)
}
@tototoshi
Copy link
Author

コードはテキトーです

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment