Hi,
At work we noticed some strange behavior in sbt, which I hope someone can help solve.
if our build.sbt file has this line:
unmanagedResourceDirectories in Test <+= (baseDirectory) { _ / "src/main/webapp" }
and we run
~;container:start; container:reload /
any html page change we do, causes a jetty restart, which is not what we want.
But, if we change
unmanagedResourceDirectories in Test <+= (baseDirectory) { _ / "src/main/webapp" }
for
unmanagedClasspath in Test <+= (baseDirectory) map { bd => Attributed.blank(bd / "src/main/webapp") }
then
~;container:start; container:reload /
only reloads if you change a scala file.
The problem is, using
unmanagedClasspath in Test <+= (baseDirectory) map { bd => Attributed.blank(bd / "src/main/webapp") }
brings up a bug in Intelli + the idea plugin, where your delete button and arrow keys stop working (I know, it sounds like it should not happen, but it does).
So, does anyone know why unmanagedResourceDirectories in Test <+= (baseDirectory) { _ / "src/main/webapp" } affects ~;container:start;container:reload / ? and how we could fix that?
Thanks
Diego