http://stackoverflow.com/questions/12231862/how-to-make-play-framework-dist-command-adding-some-files-folders-to-the-final
Play uses sbt-native-packager, which supports the inclusion of arbitrary files by adding them to the mappings:
mappings in Universal ++= (baseDirectory.value / "scripts" * "*" get) map (x => x -> ("scripts/" + x.getName))
The syntax assumes Play 2.2.x
val jdk8 = new File("D:\\JDK\\JDK8\\jre1_8_0_40")
mappings in Universal ++= (jdk8 ** "*" get) map (x => x -> ("jre8/" + jdk8.relativize(x).getOrElse(x.getName)))
posted on 2016-02-26 16:46
SIMONE 阅读(973)
评论(0) 编辑 收藏