Created
July 9, 2012 14:49
-
-
Save aktau/3076967 to your computer and use it in GitHub Desktop.
scalatra assembly include other dirs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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