diff options
author | Paul Phillips <paulp@improving.org> | 2013-06-13 05:54:44 -0400 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-06-13 11:47:43 -0400 |
commit | 77bf3a09328709f702bc066fe93fc3e12cd64ba2 (patch) | |
tree | ee5f6b47e416b2a5c09cef0aa8ae4bdc42757599 /project/ScalaToolRunner.scala | |
parent | 5345eb27373953a3c171a7e2f9ff302db9045d33 (diff) | |
download | scala-77bf3a09328709f702bc066fe93fc3e12cd64ba2.tar.gz scala-77bf3a09328709f702bc066fe93fc3e12cd64ba2.tar.bz2 scala-77bf3a09328709f702bc066fe93fc3e12cd64ba2.zip |
Removed sbt build.
Difficult though it may be to accept, it must go. We couldn't keep it
working with active maintenance; after eight months of neglect there is
no chance. Nobody is working on it or using it. The code will remain in
the history if anyone wants it.
One of the most annoying experiences one can have when building a new
project is finding out one has been fiddling with an abandoned build
system which isn't even expected to work. Sometimes I check out a scala
project and there is a build.xml, a pom.xml, and a project directory.
We should not be among those who sow such build confusion.
Diffstat (limited to 'project/ScalaToolRunner.scala')
-rw-r--r-- | project/ScalaToolRunner.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/project/ScalaToolRunner.scala b/project/ScalaToolRunner.scala deleted file mode 100644 index d7338a54b3..0000000000 --- a/project/ScalaToolRunner.scala +++ /dev/null @@ -1,21 +0,0 @@ -import sbt._ -import Keys._ - -/** Reflection helper that runs ScalaTool. - * TODO - When SBT is on 2.10.x try to use Dynamic + Reflection. COULD BE FUN. - */ -class ScalaToolRunner(classpath: Classpath) { - // TODO - Don't use the ant task directly... - lazy val classLoader = new java.net.URLClassLoader(classpath.map(_.data.toURI.toURL).toArray, null) - lazy val mainClass = classLoader.loadClass("scala.tools.ant.ScalaTool") - lazy val executeMethod = mainClass.getMethod("execute") - lazy val setFileMethod = mainClass.getMethod("setFile", classOf[java.io.File]) - lazy val setClassMethod = mainClass.getMethod("setClass", classOf[String]) - lazy val setClasspathMethod = mainClass.getMethod("setClassPath", classOf[String]) - lazy val instance = mainClass.newInstance() - - def setClass(cls: String): Unit = setClassMethod.invoke(instance, cls) - def setFile(file: File): Unit = setFileMethod.invoke(instance, file) - def setClasspath(cp: String): Unit = setClasspathMethod.invoke(instance, cp) - def execute(): Unit = executeMethod.invoke(instance) -} |