forked from osoco/groovy-metakoans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gant
39 lines (29 loc) · 850 Bytes
/
build.gant
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
taskdef(name: 'groovyc', classname: 'org.codehaus.groovy.ant.Groovyc')
def TARGET_DIR = "${basedir}/target"
target(name: 'clean') {
delete dir: TARGET_DIR
delete file: '.progress'
}
target(name: 'init') {
mkdir dir: TARGET_DIR
}
target(name: 'compileKoanEngine') {
depends init
groovyc srcdir: "${basedir}/koan_engine", destdir: TARGET_DIR
}
target(name: 'compileKoans') {
depends compileKoanEngine
groovyc srcdir: "${basedir}/koans", destdir: TARGET_DIR, {
javac source: '1.6', target: '1.6'
}
}
target wayToEnlightment: 'Executes koans', {
depends compileKoanEngine, compileKoans
junit printsummary: 'withOutAndErr', haltonfailure: true, {
classpath {
pathelement location: TARGET_DIR
}
test name: 'MetaKoans'
}
}
setDefaultTarget(wayToEnlightment)