-
Notifications
You must be signed in to change notification settings - Fork 441
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
folder mappings #69
Comments
Just a small note, I would love to see this on Windows / universal :) |
You probably want to use sbt's fitlering/including mechanisms: mappings in Universal += {
// Don't assume your CWD is the project. some sbt tools load you externally. baseDirectory gives you
// the root of the project
val base = baseDirectory.value
val confDir = base / "src" / "universal" / "conf"
for {
(file, relativePath) <- (confDir.*** --- confDir) x relativeTo(confDir)
} yield file -> s"/etc/$relativePath"
} That last line is confusing, so let's deconstruct it a bit. The
The second feature on the left is more confusing:
Here's some useful docs:
I'm going to mark this as closed. If you think we need some better "packaging specific" helpers, please open feature requests for each individually. I'm more than happy to help make this easier! |
Also wanted to mention. I'm pretty active around sbt questions on Stackoverflow. I'd love to have you ask (and have answered) native packager questions there. It's got much better Google SEO than I was ever able to accomplish with my documentation sites :). Thanks! |
Thanks! I think this works for me, but of course some people may be shocked with APIs like that :) I will ask the next question on SO when I have one! |
Great! I'm going ot add stackoverflow to the readme. I follow the sbt tag, but I also just created the sbt-native-packager tag, so either should catch my attention :) Also, I agree the API may be mimicking the old Ant style too closely. I always forget how to use it when I don't have it. I also find the alternative (directly creating classes) ugly, so I've been using the more terse one. Any advice on what you think could help make it easier to grasp is welcome! |
I think the really weird parts are |
DOH! THanks for the reminder. TOo used to .scala build files. |
FYI, the 0.13 version of
|
Thanks for sharing 😍 |
Hi,
What would be the easiest way to add a folder with all files (or better—pattern-filtered) to this?
The text was updated successfully, but these errors were encountered: