Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (42 sloc) 1.56 KB
@Grapes([
@Grab(group='org.scala-lang', module='scala-library', version='2.9.2'),
@Grab(group='org.scalatest', module='scalatest_2.9.1', version='1.8'),
@Grab(group='org.scala-lang', module='scala-compiler', version='2.9.2'),
// @Grab(group='org.codehaus.groovy', module='groovy-all', version='2.0.1'),
@GrabConfig(systemClassLoader = true)
])
import groovy.grape.Grape
import org.scalatest.tools.Runner
import scala.tools.ant.*
def ant = new AntBuilder()
ant.taskdef(name: 'groovyc', classname: 'org.codehaus.groovy.ant.Groovyc')
ant.taskdef(resource: 'scala/tools/ant/antlib.xml')
ant.taskdef(name: 'scalatest', classname: 'org.scalatest.tools.ScalaTestAntTask')
ant.mkdir(dir: 'target/test-classes')
ant.mkdir(dir: 'target/classes')
ant.groovyc(srcdir: 'src', destdir: 'target/classes')
ant.scalac(srcdir: 'test', destdir: 'target/test-classes', fork: false) {
classpath {
pathelement(location: 'target/classes')
fileset(dir: System.getenv('GROOVY_HOME') + '/embeddable') {
include(name: 'groovy-all-*.jar')
exclude(name: '*indy*')
}
Grape.resolve(new HashMap()).each {
pathelement(location: new File(it).absolutePath)
}
}
}
ant.scalatest(suite: 'org.jboss.qa.test.SuperUtilSuite') {
runpath {
pathelement(location: 'target/classes')
pathelement(location: 'target/test-classes')
fileset(dir: System.getenv('GROOVY_HOME') + '/embeddable') {
include(name: 'groovy-all-*.jar')
exclude(name: '*indy*')
}
Grape.resolve(new HashMap()).each {
pathelement(location: new File(it).absolutePath)
}
}
}
Something went wrong with that request. Please try again.