mirror of https://github.com/sbt/sbt.git
Remove unused match
This commit is contained in:
parent
2de32ca723
commit
b4a1f66aea
|
|
@ -1,5 +1,6 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
|
import java.lang.reflect.InvocationTargetException
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import xsbti.AppConfiguration
|
import xsbti.AppConfiguration
|
||||||
import sbt.classpath.ClasspathUtilities
|
import sbt.classpath.ClasspathUtilities
|
||||||
|
|
@ -67,10 +68,7 @@ private[sbt] object TemplateCommandUtil {
|
||||||
val method = interfaceClass.getMethod(methodName, argTypes: _*)
|
val method = interfaceClass.getMethod(methodName, argTypes: _*)
|
||||||
try { method.invoke(interface, args: _*) }
|
try { method.invoke(interface, args: _*) }
|
||||||
catch {
|
catch {
|
||||||
case e: java.lang.reflect.InvocationTargetException =>
|
case e: InvocationTargetException => throw e.getCause
|
||||||
e.getCause match {
|
|
||||||
case t => throw t
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private def getInterfaceClass(name: String, loader: ClassLoader) = Class.forName(name, true, loader)
|
private def getInterfaceClass(name: String, loader: ClassLoader) = Class.forName(name, true, loader)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue