Skip to content
Permalink
Browse files

Automatically create bootstrap/src/main/resources if missing

Pr 10 removed bootstrap/src/main/resources/dependencies.xml from the git repo.
The directory has to be created inorder to be able to save the dependencies to the xml file,
so the directory has to be created if missing.
  • Loading branch information...
daniel0611 committed May 25, 2019
1 parent f57dc5a commit 774b5d59b4d14ade0c9341504d5ccf52b05c3e65
Showing with 6 additions and 0 deletions.
  1. +6 −0 project/BootstrapUtility.scala
@@ -43,6 +43,12 @@ object BootstrapUtility {
</dependencies>

logger info "Saving dependency XML now."

// Create directory if not existent, otherwise saving will fail.
if (new File(dependencyXMLFileName).getParentFile.mkdir()) {
logger info "Created directory bootstrap/src/main/resources"
}

XML.save(dependencyXMLFileName, xml)
logger info "Finished saving XML file."
}

0 comments on commit 774b5d5

Please sign in to comment.
You can’t perform that action at this time.