Skip to content

Commit

Permalink
Don't generate directory resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
wspringer committed Dec 21, 2012
1 parent 62f84ae commit 9ceba57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scala/nl/flotsam/monkeyman/MonkeymanGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ object MonkeymanGenerator extends MonkeymanTool("monkeyman generate") with Loggi

private def generate(config: MonkeymanConfiguration, targetDir: File) {
targetDir.mkdirs()
for (resource <- config.registry.allResources) {
for {
resource <- config.registry.allResources
if resource.contentType != "application/directory"
} {
val targetFile = new File(targetDir, resource.path)
using(resource.open) {
info("Generating {}", resource.path)
Expand Down

0 comments on commit 9ceba57

Please sign in to comment.