summaryrefslogtreecommitdiff
path: root/build.xml
blob: 3d87fb21ee852142b461aecb20f52f9aeb95768c (plain)
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
<project name="clojure" default="jar">

	<description>
		Build with "ant jar" and then start the REPL
		via "java -cp clojure.jar clojure.lang.Repl src/boot.clj".
	</description>

	<property name="src" location="src"/>
	<property name="jsrc" location="${src}/jvm"/>
	<property name="build" location="classes"/>
	<property name="clojure_jar" location="clojure.jar"/>
	<property name="bootclj" location="${src}/boot.clj"/>

	<target name="init">
		<tstamp/>
		<mkdir dir="${build}"/>
	</target>

	<target name="compile" depends="init"
	        description="Compile Java sources.">
		<javac srcdir="${jsrc}" destdir="${build}" includeJavaRuntime="yes" debug="true"/>
	</target>

	<target name="jar" depends="compile"
	        description="Create jar file.">
		<jar jarfile="${clojure_jar}" basedir="${build}">
			<fileset dir="${src}" includes="**/*.clj"/>
			<manifest>
				<attribute name="Main-Class" value="clojure.lang.Repl"/>
				<attribute name="Class-Path" value="."/>
			</manifest>
		</jar>
	</target>

	<target name="clean"
	        description="Remove autogenerated files and directories.">
		<delete dir="${build}"/>
	</target>

</project>