My favorites | Sign in
Project Logo
                
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
<project name="clojure" default="all">

<description>
Build with "ant jar" and then start the REPL with:
"java -cp clojure.jar clojure.main"
</description>

<property name="src" location="src"/>
<property name="jsrc" location="${src}/jvm"/>
<property name="cljsrc" location="${src}/clj"/>
<property name="build" location="classes"/>
<property name="clojure_jar" location="clojure.jar"/>
<property name="slim_jar" location="clojure-slim.jar"/>

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

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

<target name="compile-clojure" depends="compile-java"
description="Compile Clojure sources.">
<java classname="clojure.lang.Compile"
classpath="${build}:${cljsrc}">
<sysproperty key="clojure.compile.path" value="${build}"/>
<arg value="clojure.core"/>
<arg value="clojure.main"/>
<arg value="clojure.set"/>
<arg value="clojure.xml"/>
<arg value="clojure.zip"/>
<arg value="clojure.inspector"/>
</java>
</target>

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

<target name="clojure-slim" depends="compile-java"
description="Create clojure-slim jar file (omits compiled Clojure code)">
<jar jarfile="${slim_jar}">
<fileset dir="${build}" includes="clojure/asm/**"/>
<fileset dir="${build}" includes="clojure/lang/**"/>
<fileset dir="${build}" includes="clojure/main.class"/>
<fileset dir="${cljsrc}" includes="**/*.clj"/>
<manifest>
<attribute name="Main-Class" value="clojure.main"/>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>

<target name="jar" depends="clojure"/>

<target name="all" depends="clojure,clojure-slim"/>

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

</project>
Show details Hide details

Change log

r1206 by richhickey on Jan 09, 2009   Diff
[No log message]
Go to: 
Project members, sign in to write a code review

Older revisions

r1189 by richhickey on Dec 29, 2008   Diff
unified clojure.main, patch from
Stephen C. Gilardi
r1163 by richhickey on Dec 16, 2008   Diff
made default build run clean
r1127 by rhickey on Nov 26, 2008   Diff
added clojure.main, patch from Stephen
C. Gilardi
All revisions of this file

File info

Size: 2454 bytes, 74 lines
Hosted by Google Code