Permalink
Browse files

Merge branch 'master' of github.com:typesafehub/migration-manager

  • Loading branch information...
2 parents a35337f + 40bbcf5 commit 902f44ee9894b1b94296dcb13fce6e828797fe0d @jsuereth jsuereth committed May 25, 2012
View
@@ -1,11 +1,14 @@
Migration Manager for Scala
==============
-A tool for diagnosing and fixing migration problems for Scala libraries.
-=======
+A tool for diagnosing and fixing migration problems for Scala libraries
+=======================================================================
+
The Migration Manager for Scala (MiMa in short) is a tool for diagnosing and fixing binary incompatibilities for Scala libraries. The OSS version includes only
features which allow inspecting binary compatibility.
+The mailing list is at https://groups.google.com/group/migration-manager-user/topics. Please use it for questions and comments!
+
MiMa's Modules
-------
@@ -63,8 +66,6 @@ Eclipse
In order to create Eclipse metadata files (i.e., .classpath and .project) we recomend to use [sbteclipse][sbteclipse]. Once done, to set up the three modules in Eclipse just click on `File > Import > General > Exisiting Projects Into Workspace`, and select the MiMa project's root folder, the three modules should be correctly loaded.
-In the `reporter-ui` folders you can also find a `*.launch` file configuration, which can be imported in Eclipse and can be used to start the programs.
-
[sbteclipse]: https://github.com/typesafehub/sbteclipse/
View
@@ -58,7 +58,7 @@ object BuildSettings {
</scm>
<developers>
<developer>
- <id>mirco</id>
+ <id>mdotta</id>
<name>Mirco Dotta</name>
</developer>
<developer>
@@ -76,7 +76,7 @@ object Dependencies {
val compiler = "org.scala-lang" % "scala-compiler" % buildScalaVer
val swing = "org.scala-lang" % "scala-swing" % buildScalaVer
- val specs2 = "org.specs2" % "specs2_2.9.1" % "1.5" % "test"
+ val specs2 = "org.specs2" %% "specs2" % "1.5" % "test"
}
object MimaBuild extends Build {
@@ -217,17 +217,20 @@ object MimaBuild extends Build {
val testClass = loader.loadClass("com.typesafe.tools.mima.lib.CollectProblemsTest")
val testRunner = testClass.newInstance().asInstanceOf[
- { def runTest(testName: String, oldJarPath: String, newJarPath: String,
+ { def runTest(testClasspath: List[String], testName: String, oldJarPath: String, newJarPath: String,
oraclePath: String): Unit
}]
+ // Add the scala-library to the MiMa classpath used to run this test
+ val testClasspath = data(cp).filter(_.getName endsWith "scala-library.jar").map(_.getAbsolutePath).toList
+
val projectPath = proj.build.getPath + "reporter" + "/" + "functional-tests" + "/" + "src" +
"/" + "test" + "/" + proj.project
val oraclePath = projectPath + "/problems.txt"
try {
- testRunner.runTest(proj.project, v1.getAbsolutePath, v2.getAbsolutePath, oraclePath)
+ testRunner.runTest(testClasspath, proj.project, v1.getAbsolutePath, v2.getAbsolutePath, oraclePath)
streams.log.info("Test '" + proj.project + "' succeeded.")
} catch {
case e: Exception => streams.log.error(e.toString)
View
@@ -1,3 +1,3 @@
-mainClass in (Compile, packageBin) := Some("ssol.tools.mima.lib.ui.MimaLibApp")
+mainClass in (Compile, packageBin) := Some("com.typesafe.tools.mima.lib.ui.MimaLibApp")
-mainClass in (Compile, sbt.Keys.run) := Some("ssol.tools.mima.lib.ui.MimaLibApp")
+mainClass in (Compile, sbt.Keys.run) := Some("com.typesafe.tools.mima.lib.ui.MimaLibApp")
View
@@ -1,3 +1,3 @@
-mainClass in (Compile, packageBin) := Some("ssol.tools.mima.cli.Main")
+mainClass in (Compile, packageBin) := Some("com.typesafe.tools.mima.cli.Main")
-mainClass in (Compile, sbt.Keys.run) := Some("ssol.tools.mima.cli.Main")
+mainClass in (Compile, sbt.Keys.run) := Some("com.typesafe.tools.mima.cli.Main")
@@ -8,11 +8,10 @@ case class TestFailed(msg: String) extends Exception(msg)
class CollectProblemsTest {
- def runTest(testName: String, oldJarPath: String, newJarPath: String, oraclePath: String) {
+ def runTest(testClasspath: List[String])(testName: String, oldJarPath: String, newJarPath: String, oraclePath: String) {
// load test setup
Config.setup("scala com.typesafe.tools.mima.MiMaLibUI <old-dir> <new-dir>", Array(oldJarPath, newJarPath))
- var scalaLib = "regressions-tests/scala-library/scala-library-2.9.0.jar"
- val cp = scalaLib :: ClassPath.split(Config.baseClassPath.asClasspathString)
+ val cp = testClasspath ::: ClassPath.split(Config.baseClassPath.asClasspathString)
val cpString = ClassPath.join(cp: _*)
Config.baseClassPath = new JavaClassPath(ClassPath.DefaultJavaContext.classesInPath(cpString).toIndexedSeq, ClassPath.DefaultJavaContext)

0 comments on commit 902f44e

Please sign in to comment.