forked from joliebig/featurehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
77 lines (64 loc) · 2.53 KB
/
build.xml
File metadata and controls
77 lines (64 loc) · 2.53 KB
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
77
<project name="FeatureHouse" default="jar" basedir=".">
<description>
FeatureHouse: Automatic, language-independent software composition and merging
</description>
<property name="srcfstgen" location="./fstgen/src:./fstgen/test:./CIDE2_ast/src:./CIDE_generateAST/src" />
<property name="srcfstcomp" location="./fstcomp:./fstgen/src:./fstgen/test:./CIDE2_ast/src:./CIDE_generateAST/src" />
<property name="srcfstmerge" location="./fstmerge:./fstcomp:./fstgen/src:./fstgen/test:./CIDE2_ast/src:./CIDE_generateAST/src" />
<property name="build-dir" location="build" />
<property name="jar-dir" location="jar" />
<property name="test-dir" location="test" />
<property name="result-dir" location="result" />
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<tstamp>
<format property="current.time" pattern="yyyMMdd" />
</tstamp>
<target name="fstcomp">
<mkdir dir="${build-dir}"/>
<javac sourcepath="${srcfstcomp}" destdir="${build-dir}" srcdir="./fstcomp/composer/"/>
</target>
<target name="fstmerge">
<mkdir dir="${build-dir}"/>
<javac sourcepath="${srcfstmerge}" destdir="${build-dir}" srcdir="./fstmerge/merger/"/>
</target>
<target name="jar" depends="fstcomp,fstmerge" description="generate featurehouse.jar" >
<mkdir dir="${jar-dir}"/>
<jar jarfile="${jar-dir}/featurehouse_${current.time}.jar" basedir="${build-dir}">
<manifest>
<attribute name="Main-Class" value="composer.FSTGenComposer" />
</manifest>
</jar>
</target>
<target name="test-compile">
<mkdir dir="${test-dir}" />
<javac classpath="./fstgen/lib/junit-4.8.2.jar" sourcepath="${srcfstgen}" destdir="${test-dir}" srcdir="./fstgen/test/" />
<copy todir="${test-dir}">
<fileset dir="./fstgen/test/">
<include name="*testfiles/**" />
</fileset>
</copy>
</target>
<target name="test" depends="test-compile">
<mkdir dir="${result-dir}" />
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement location="./fstgen/lib/junit-4.8.2.jar" />
<pathelement location="${test-dir}" />
</classpath>
<formatter type="plain"/>
<batchtest fork="yes" todir="${result-dir}">
<fileset dir="${test-dir}" >
<include name="*Test.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="clean" description="clean up" >
<delete dir="${build-dir}"/>
<delete dir="${jar-dir}"/>
<delete dir="${test-dir}"/>
<delete dir="${result-dir}"/>
</target>
</project>