我在app/assets/images
下有一个文件夹,我想要public
复制到play dist
。我尝试了这个,但它似乎不起作用:
val copyAssets = taskKey[Unit]("publishes the files")
val copyAssetsTask = copyAssets <<= (baseDirectory, resourceManaged in Compile, streams) map {
(base, resources, s) =>
s.log.info(s"resourceManaged: $resources")
IO.copyDirectory ( base / "assets" / "images", "target"/ "scala-2.10" / "resource_managed" / "main" / "public" );
}