Java Play! Framework – build.sbt Mapping Files

问题内容:

I’m new to sbt.
I would like to embbed a JRE in my Java Play! 2.5 project.
I’m using sbt-native-packager to create the msi installer, so I have to map the files in build.sbt.

I need to recursively copy files from /jre to /target/windows/jre.

I found this page, but I cant get it to work 🙁

Also, I tried the folowing:

mappings in Universal <++= (target) map { (target) =>
val dir = target / "windows" / "jre"
(dir.***) pair relativeTo(dir.getParentFile)}

The compilation / WixGeneration is completed without errors, but still no jre directory in the target …

Any help is appreciated !

Thank you !

问题评论:

原文地址:

https://stackoverflow.com/questions/47756220/java-play-framework-build-sbt-mapping-files

Add a Comment