Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Automatically create bootstrap/src/main/resources if missing
Browse files Browse the repository at this point in the history
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
hlxid committed May 25, 2019
1 parent f57dc5a commit 774b5d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/BootstrapUtility.scala
Expand Up @@ -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."
}
Expand Down

0 comments on commit 774b5d5

Please sign in to comment.