How to not watch a file for changes in Play Framework

前端 未结 1 379
别那么骄傲
别那么骄傲 2021-01-13 18:26

On a Play Framework 2.2 project that is using sbt-buildinfo to create a BuildInfo.scala file when the project is compiled, how can build.sbt be con

相关标签:
1条回答
  • 2021-01-13 19:11

    To remove a particular file from being watched you can do in build.sbt:

    watchSources := watchSources.value.filter { _.getName != "BuildInfo.scala" }
    

    I tried to reproduce basic setup, and for me the BuildInfo.scala file is not watched. You can see the list of watched sources by issuing show watchSources.

    0 讨论(0)
提交回复
热议问题