From c6ab8184255f0b5dcb3c70559e39c113d123b518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Mro=C5=BCek?= Date: Fri, 27 Nov 2020 15:23:46 +0100 Subject: [PATCH] [ETCM-403] PExpose application.conf and chains configs directory (#811) Co-authored-by: Mirko Alic <31509803+mirkoAlic@users.noreply.github.com> --- build.sbt | 5 +++++ src/universal/conf/app.conf | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index a0d2bf47bd..b2562eaf2c 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,7 @@ enablePlugins(JDKPackagerPlugin, JavaAppPackaging, SolidityPlugin) import scala.sys.process.Process +import NativePackagerHelper._ // Necessary for the nix build, please do not remove. val nixBuild = sys.props.isDefinedAt("nix") @@ -144,6 +145,10 @@ discoveredMainClasses in Compile := Seq() ThisBuild / jdkPackagerType := "image" Universal / mappings += (resourceDirectory in Compile).value / "logback.xml" -> "conf/logback.xml" +Universal / mappings += (resourceDirectory in Compile).value / "application.conf" -> "conf/base.conf" +Universal / mappings ++= directory((resourceDirectory in Compile).value / "chains").map { case (f, name) => + f -> s"conf/$name" +} val sep = java.io.File.separator jdkPackagerJVMArgs := Seq( diff --git a/src/universal/conf/app.conf b/src/universal/conf/app.conf index f9be304dda..349d47ba60 100644 --- a/src/universal/conf/app.conf +++ b/src/universal/conf/app.conf @@ -1,5 +1,5 @@ # This is the base configuration file for the Mantis ETC client. -# This where all the default settings are defined (this file is packaged within the executable). +# This where all the default settings are defined. # It should always go at the top. -include "application.conf" +include "base.conf"