Permalink
Browse files

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

Mima exit codes
  • Loading branch information...
2 parents f68764d + 36dacfb commit 7f4e8842214330475f8f24fbbc1095dc7e6a67fe @dotta dotta committed Nov 30, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 project/build.properties
  2. +3 −3 reporter/src/main/scala/com/typesafe/tools/mima/cli/Main.scala
View
2 project/build.properties
@@ -1 +1 @@
-sbt.version=0.11.3
+sbt.version=0.12.1
View
6 reporter/src/main/scala/com/typesafe/tools/mima/cli/Main.scala
@@ -78,14 +78,14 @@ class Main(args: List[String]) extends {
wrapString(" * " + p.description) mkString "\n "
}
- def run(): Unit = {
+ def run(): Int = {
val mima = makeMima
val problems = mima.collectProblems(prevfile, currentfile)
val header = "Found " + problems.size + " binary incompatibiities"
println(header)
println(Seq.fill(header.length)("=") mkString "")
problems map printProblem foreach println
- // TODO - System.exit(problems.size)
+ problems.size
}
}
@@ -94,6 +94,6 @@ object Main {
val runner = new Main(args.toList)
if (args.isEmpty || !runner.isDefined) println(runner.helpMsg)
- else runner.run()
+ else System.exit(runner.run())
}
}

0 comments on commit 7f4e884

Please sign in to comment.