Skip to content
This repository
Browse code

Merge pull request #23 from typesafehub/mima-exit-codes

Mima exit codes
  • Loading branch information...
commit 7f4e8842214330475f8f24fbbc1095dc7e6a67fe 2 parents f68764d + 36dacfb
Mirco Dotta dotta authored
2  project/build.properties
... ... @@ -1 +1 @@
1   -sbt.version=0.11.3
  1 +sbt.version=0.12.1
6 reporter/src/main/scala/com/typesafe/tools/mima/cli/Main.scala
@@ -78,14 +78,14 @@ class Main(args: List[String]) extends {
78 78 wrapString(" * " + p.description) mkString "\n "
79 79 }
80 80
81   - def run(): Unit = {
  81 + def run(): Int = {
82 82 val mima = makeMima
83 83 val problems = mima.collectProblems(prevfile, currentfile)
84 84 val header = "Found " + problems.size + " binary incompatibiities"
85 85 println(header)
86 86 println(Seq.fill(header.length)("=") mkString "")
87 87 problems map printProblem foreach println
88   - // TODO - System.exit(problems.size)
  88 + problems.size
89 89 }
90 90 }
91 91
@@ -94,6 +94,6 @@ object Main {
94 94 val runner = new Main(args.toList)
95 95
96 96 if (args.isEmpty || !runner.isDefined) println(runner.helpMsg)
97   - else runner.run()
  97 + else System.exit(runner.run())
98 98 }
99 99 }

0 comments on commit 7f4e884

Please sign in to comment.
Something went wrong with that request. Please try again.