forked from matheusgr/easyaccept
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
77 lines (69 loc) · 2.71 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
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0"?>
<!-- ======================================================================
02/08/2004 20:16:34
EasyAccept
Framework to write and execute acceptance tests
jacques
====================================================================== -->
<project name="EasyAccept" default="all">
<description>
Framework to write and execute acceptance tests
</description>
<property name="home" value="." />
<property name="source" value="${home}/src" />
<property name="lib" value="${home}/lib" />
<property name="classes" value="${home}/bin" />
<property name="easyacceptjar" value="${lib}/easyaccept.jar" />
<property name="ant.test.lib" value="${lib}/ant-testutil.jar"/>
<property name="junit" value="${lib}/junit.jar" />
<!-- =================================
target: all
================================= -->
<target name="all" depends="compile" description="--> Framework to write and execute acceptance tests">
</target>
<target name="compile">
<mkdir dir="${classes}"/>
<javac srcdir="${source}" destdir="${classes}" source="1.4" target="1.4" debug="true" optimize="on" excludes="tests/**">
<classpath>
<pathelement path="${junit}" />
<pathelement path="${ant.test.lib}"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${easyacceptjar}" basedir="${classes}">
<!-- =================================
<fileset dir="${resources}">
</fileset>
================================= -->
</jar>
</target>
<target name="easyaccept.task.init" description="Taskdef the EasyAccept-Task">
<taskdef name="easyaccept" classname="easyaccept.EasyAcceptTask" classpath="${easyacceptjar}"/>
</target>
<target name="acceptance-test" depends="jar,easyaccept.task.init">
<echo/>
<echo/>
<echo message="Running EasyAccept stand-alone"/>
<echo/>
<java fork="yes" classname="easyaccept.EasyAccept">
<arg value="easyaccept.script.test.TestFacade" />
<arg value="tests/script1.txt" />
<arg value="tests/script2.txt" />
<arg value="tests/script3.txt" />
<classpath>
<pathelement path="${easyacceptjar}" />
</classpath>
</java>
<echo/>
<echo/>
<echo message="Running EasyAccept Ant task"/>
<echo/>
<easyaccept failonerror="true" failureproperty="easyaccept.ant.task.failed" facade="easyaccept.script.test.TestFacade">
<path>
<fileset dir="${home}/tests" includes="script*.txt"/>
</path>
</easyaccept>
<fail if="easyaccept.ant.task.failed" message="EasyAccept ant task failed."/>
</target>
</project>