Skip to content

Instantly share code, notes, and snippets.

@aktau
Created July 9, 2012 14:49
Show Gist options
  • Save aktau/3076967 to your computer and use it in GitHub Desktop.
Save aktau/3076967 to your computer and use it in GitHub Desktop.
scalatra assembly include other dirs
resourceGenerators in Compile <+= (resourceManaged, baseDirectory) map { (managedBase, base) =>
val webappBase = base / "src" / "main" / "webapp"
for {
(from, to) <- webappBase ** "*" x rebase(webappBase, managedBase / "main" / "webapp")
} yield {
Sync.copy(from, to)
to
}
}
resourceGenerators in Compile <+= (resourceManaged, baseDirectory) map { (managedBase, base) =>
val webappBase = base / "resources"
for {
(from, to) <- webappBase ** "*" x rebase(webappBase, managedBase / "resources")
} yield {
Sync.copy(from, to)
to
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment