Skip to content

Commit

Permalink
[ETCM-403] PExpose application.conf and chains configs directory (#811)
Browse files Browse the repository at this point in the history
Co-authored-by: Mirko Alic <31509803+mirkoAlic@users.noreply.github.com>
  • Loading branch information
Michał Mrożek and mirkoAlic authored Nov 27, 2020
1 parent 2905cbd commit c6ab818
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/universal/conf/app.conf
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c6ab818

Please sign in to comment.