-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
75 lines (65 loc) · 2.11 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
<project name="dataflow" default="jar">
<description>
Pack all clojure-datalog sources into a JAR. Compile those that can
be compiled standalone if the clojure.jar property points us to
clojure.jar .
</description>
<property name="src" location="src"/>
<property name="build" location="classes"/>
<target name="clojure.check">
<condition property="hasclojure">
<and>
<available file="${clojure.jar}"/>
<available file="${clojure-contrib.jar}"/>
</and>
</condition>
</target>
<!-- The JAR file to create. -->
<property name="jarfile" location="jls-dataflow.jar"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="clean" description="Remove generated files and directories.">
<delete file="${jarfile}"/>
<delete dir="${build}"/>
</target>
<target name="test"
depends="clojure.check"
description = "Run dataflow tests"
if="hasclojure">
<java classname="clojure.main">
<classpath>
<path location="${build}"/>
<path location="${src}"/>
<path location="${clojure.jar}"/>
<path location="${clojure-contrib.jar}"/>
</classpath>
<arg value="src/jls/dataflow/test/test.clj"/>
</java>
</target>
<target name="compile_clojure" depends="init,clojure.check"
description="Compile sources."
if="hasclojure">
<java classname="clojure.lang.Compile">
<classpath>
<path location="${build}"/>
<path location="${src}"/>
<path location="${clojure.jar}"/>
<path location="${clojure-contrib.jar}"/>
</classpath>
<sysproperty key="clojure.compile.path" value="${build}"/>
<arg value="jls.dataflow.dataflow"/>
</java>
</target>
<target name="jar" description="Create jar file." depends="compile_clojure">
<jar jarfile="${jarfile}">
<fileset file="epl-v10.html"/>
<fileset dir="${src}" includes="**/*.clj"/>
<fileset dir="${build}" includes="**/*.class"/>
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>
</project>