如何在"播放dist"?

时间:2014-08-16 22:12:42

标签: sbt playframework-2.2

我在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" );
    }

0 个答案:

没有答案