Permalink
Browse files

Resolve substitutions in problem filters config.

By calling Config.resolve we enable substitution mechanism from
Typesafe Config library. This is handy if one wants to break long
list of filters into smaller variables (e.g. focused on one
package) and concatenate them into one big list.
  • Loading branch information...
gkossakowski committed Feb 11, 2013
1 parent 22728f1 commit 5ce9760c384abd6802932119047cf0f391d41984
Showing with 1 addition and 1 deletion.
  1. +1 −1 reporter/src/main/scala/com/typesafe/tools/mima/cli/Main.scala
@@ -84,7 +84,7 @@ class Main(args: List[String]) extends {
private def loadFilters(configFile: File): Seq[ProblemFilter] = {
import com.typesafe.config._
try {
- val config: Config = ConfigFactory.parseFile(configFile)
+ val config: Config = ConfigFactory.parseFile(configFile).resolve
ProblemFiltersConfig.parseProblemFilters(config)
} catch {
case e: Exception =>

0 comments on commit 5ce9760

Please sign in to comment.