From 774b5d59b4d14ade0c9341504d5ccf52b05c3e65 Mon Sep 17 00:00:00 2001 From: Daniel Huber Date: Sat, 25 May 2019 16:02:20 +0200 Subject: [PATCH] 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. --- project/BootstrapUtility.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/BootstrapUtility.scala b/project/BootstrapUtility.scala index 842c0e9f..5799dba0 100644 --- a/project/BootstrapUtility.scala +++ b/project/BootstrapUtility.scala @@ -43,6 +43,12 @@ object BootstrapUtility { 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." }