-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to add a directories and their content recursively to java application #158
Comments
Well this works kind of mappings in Universal <++= target map { target =>
packageMapping(
(target / "scala-2.10" / "api") -> "docs"
).withContents().mappings.map {
case (f,p) => (f.asInstanceOf[java.io.File], p)
}.toSeq
} but is a bit weird, as you have to call |
The sbt way is a bit wierder, but works: mappings in Universal ++= {
val dir = target.value / "scala-2.10" / "api"
(dir.*** --- dir) x relativeTo(dir)
} |
|
I saw that before doing my pull request and if I understand well it does Another option I was thinking about is to move some part of the (I am a kind of newbee in sbt and sbt-native-manager some my apologize if I 2014-02-07 Muki notifications@github.com:
Ivan Frain |
I would close that one, replaced by #161 which is more comprehensive. |
As I described in http://stackoverflow.com/questions/21551854/add-specific-directory-and-its-content-to-universal-target, it would be great to allow a user to add directories and their respective contents in the installation directory of what was defined as java application.
One could write the following:
the first entry corresponds to a file and the second entry to a directory with content (files and directories). Both of them are copied into the installation directory generated by the universal:stage task.
The text was updated successfully, but these errors were encountered: