Skip to content

Commit c6ab818

Browse files
Michał MrożekmirkoAlic
Michał Mrożek
andauthored
[ETCM-403] PExpose application.conf and chains configs directory (#811)
Co-authored-by: Mirko Alic <[email protected]>
1 parent 2905cbd commit c6ab818

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

build.sbt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
enablePlugins(JDKPackagerPlugin, JavaAppPackaging, SolidityPlugin)
22

33
import scala.sys.process.Process
4+
import NativePackagerHelper._
45

56
// Necessary for the nix build, please do not remove.
67
val nixBuild = sys.props.isDefinedAt("nix")
@@ -144,6 +145,10 @@ discoveredMainClasses in Compile := Seq()
144145
ThisBuild / jdkPackagerType := "image"
145146

146147
Universal / mappings += (resourceDirectory in Compile).value / "logback.xml" -> "conf/logback.xml"
148+
Universal / mappings += (resourceDirectory in Compile).value / "application.conf" -> "conf/base.conf"
149+
Universal / mappings ++= directory((resourceDirectory in Compile).value / "chains").map { case (f, name) =>
150+
f -> s"conf/$name"
151+
}
147152

148153
val sep = java.io.File.separator
149154
jdkPackagerJVMArgs := Seq(

src/universal/conf/app.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This is the base configuration file for the Mantis ETC client.
22

3-
# This where all the default settings are defined (this file is packaged within the executable).
3+
# This where all the default settings are defined.
44
# It should always go at the top.
5-
include "application.conf"
5+
include "base.conf"

0 commit comments

Comments
 (0)