-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
63 lines (54 loc) · 1.89 KB
/
build.xml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="HelloCucumber"
default="cucumber" basedir=".">
<property name="jruby.home" value="${basedir}/lib/.jruby"/>
<target name="-compile-steps" depends="-define-paths">
<mkdir dir="target/test-classes"/>
<javac srcdir="src/test/java" destdir="target/test-classes"
classpathref="compile.classpath" encoding="UTF-8"/>
</target>
<target name="cucumber" depends="-compile-steps,-install-gems"
description="Run Cucumber">
<mkdir dir="target/junit-report"/>
<taskdef name="cucumber" classname="cuke4duke.ant.CucumberTask"
classpathref="compile.classpath"/>
<cucumber
args="--verbose --require target/test-classes --color
--format pretty --format junit
--out target/junit-report features"
objectFactory="pico">
<classpath>
<pathelement location="target/test-classes"/>
</classpath>
</cucumber>
</target>
<target name="-download-jars" if="ivy">
<ivy:retrieve/>
</target>
<target name="-install-gems" depends="-define-paths" if="gems">
<taskdef name="gem" classname="cuke4duke.ant.GemTask"
classpathref="compile.classpath"/>
<gem args="install cuke4duke --version 0.3.2
--source http://gemcutter.org/"/>
</target>
<target name="-define-paths" depends="-download-jars">
<path id="jruby.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="compile.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
</target>
<target name="clean" description="Delete all generated artifacts">
<delete dir="${basedir}/target"/>
</target>
<target name="clean-deps" description="Delete all dependencies">
<delete dir="${basedir}/lib/.jruby"/>
<delete>
<fileset dir="${basedir}/lib" includes=".jar"/>
</delete>
</target>
</project>