blob: 4a4fe2572dfb60bd358eea1b9af052bed43808d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import scala.tools.partest._
import scala.tools.nsc.Settings
object Test extends ReplTest {
def code = """
import scala.reflect.runtime.universe._
val sym = typeOf[Foo].typeSymbol
sym.typeSignature
sym.getAnnotations foreach (_.javaArgs)
println(sym.getAnnotations)
"""
override def transformSettings(settings: Settings): Settings = {
val thisFile = testPath.jfile.getAbsolutePath
val javaCompiledAnnotationsJar = (thisFile stripSuffix "scala") + "jar"
val classpath = List(sys.props("partest.lib"), sys.props("partest.reflect"), sys.props("partest.comp"), javaCompiledAnnotationsJar) mkString sys.props("path.separator")
settings.processArguments(List("-cp", classpath), true)
settings
}
}
|