-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
32 lines (30 loc) · 1.19 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
<?xml version="1.0" encoding="utf-8"?>
<project name="clojure-xml-stream" basedir="." default="example">
<target name="build">
<taskdef name="clojure-compile"
classname="com.ubermensch.ant.clojure.CompileTask"
classpath="lib/clojure-ant-tasks.jar:lib/clojure.jar:lib/clojure-contrib.jar" />
<mkdir dir="classes"/>
<clojure-compile>
<classpath>
<pathelement location="src/main" />
<pathelement location="src/examples" />
</classpath>
<fileset dir="src/main" includes="**/*.clj" />
<fileset dir="src/examples" includes="**/*.clj" />
</clojure-compile>
</target>
<target name="example" depends="build">
<echo message="cat example.xml for the input"/>
<java classname="clojure.main" fork="true">
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<pathelement location="classes" />
</classpath>
<arg value="-e" />
<arg value="(use 'example) (run "example.xml")" />
</java>
</target>
</project>