简体   繁体   English

sbt 0.13.16-如何自定义触发执行(文件监视)

[英]sbt 0.13.16 - How do I customize triggered execution (file watch)

Right now, most of the changes that I am making are to config files and build.sbt files. 现在,我所做的大多数更改都是配置文件和build.sbt文件。 That being said, I still want to trigger execution (ex. compile, test, reload, etc) when I touch these files. 话虽如此,当我触摸这些文件时,我仍然想触发执行(例如编译,测试,重新加载等)。 How do I customize sbt triggered execution to execute when any file in the project is modified? 如何修改项目中的任何文件后执行的sbt触发执行?

https://www.scala-sbt.org/0.13/docs/Howto-Triggered.html https://www.scala-sbt.org/0.13/docs/Howto-Triggered.html

https://www.scala-sbt.org/0.13/docs/Howto-Triggered.html https://www.scala-sbt.org/0.13/docs/Howto-Triggered.html

https://www.scala-sbt.org/1.0/docs/Howto-Triggered.html https://www.scala-sbt.org/1.0/docs/Howto-Triggered.html

watchSources += baseDirectory.value

I just do this to watch the entire base directory: 我只是这样做以查看整个基本目录:

watchSources := Seq(file("."))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM