-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
75 lines (65 loc) · 2.45 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
<project name="appengine-clj" basedir="." default="test">
<property environment="env" />
<property name="sdk.dir" location="../appengine-java-sdk-1.2.0" />
<property name="classes.dir" value="classes" />
<property name="lib.dir" value="lib" />
<property name="src.dir" value="src" />
<property name="test.dir" value="test" />
<property name="jar.file" value="appengine-clj.jar" />
<path id="project.classpath">
<pathelement path="${classes.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${sdk.dir}/lib">
<include name="**/*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${classes.dir}" />
<delete file="${jar.file}" />
</target>
<target name="init">
<mkdir dir="${classes.dir}" />
</target>
<target name="compile" depends="clean,init">
<java classname="clojure.lang.Compile" classpathref="project.classpath" failonerror="true">
<classpath path="${src.dir}" />
<sysproperty key="clojure.compile.path" value="${classes.dir}" />
<arg value="appengine-clj.users" />
<arg value="appengine-clj.datastore" />
<arg value="appengine-clj.test-utils" />
</java>
</target>
<target name="repl">
<java classname="clojure.main" classpathref="project.classpath" fork="true" failonerror="true">
<classpath path="${src.dir}" />
<classpath path="${test.dir}" />
</java>
</target>
<target name="test" depends="compile">
<java classname="clojure.main" classpathref="project.classpath" fork="true" failonerror="true">
<classpath path="${test.dir}" />
<arg value="-e" />
<arg value="
(use 'clojure.contrib.test-is)
(require 'appengine-clj.datastore-test)
(require 'appengine-clj.users-test)
(apply run-tests '[appengine-clj.datastore-test appengine-clj.users-test])" />
</java>
</target>
<target name="jar" depends="compile,test">
<jar jarfile="${jar.file}" basedir="${classes.dir}" />
</target>
<target name="vim" description="Run ng server for VimClojure">
<java classname="com.martiansoftware.nailgun.NGServer" dir="${src.dir}" fork="true">
<arg value="127.0.0.1" />
<classpath>
<pathelement path="${src.dir}" />
<pathelement path="${test.dir}" />
<pathelement location="${env.HOME}/.vim/vimclojure.jar" />
<path refid="project.classpath" />
</classpath>
</java>
</target>
</project>