public
Description: simple automation tool inspired by rake, written in Clojure
Homepage:
Clone URL: git://github.com/rosado/cloak.git
cloak / build.xml
100644 82 lines (66 sloc) 2.102 kb
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
76
77
78
79
80
81
82
<project name="cloak" default="props" basedir=".">
 
  <description>
A simple build system for Clojure.
  </description>
 
<!-- PROPERTIES -->
<property name="lib.dir" location="${basedir}/lib" />
  <property name="dist.dir" location="${basedir}/bin" />
<property name="build.classes.dir" location="${basedir}/classes" />
 
<path id="compile.classpath">
    <pathelement path="${clj.dir}/clojure.jar" />
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
 
<path id="clj.compile.classpath">
    <pathelement path="${clj.dir}/clojure.jar" />
<path refid="compile.classpath" />
<path location="${basedir}" />
<path location="${build.classes.dir}" />
</path>
 
<path id="run.classpath">
    <path refid="compile.classpath" />
<path location="${build.classes.dir}" />
</path>
 
<target name="init">
<mkdir dir="classes" />
</target>
 
<!-- TARGETS -->
 
<target name="clean">
<delete dir="classes" />
</target>
 
<target name="compile-clojure-src"
description="Compile Clojure sources"
          depends="init">
<java classname="clojure.lang.Compile"
          classpath="${build}:${cljsrc}">
<sysproperty key="clojure.compile.path" value="${build.classes.dir}" />
<classpath refid="clj.compile.classpath" />
      <arg value="rosado.cloak"/>
      <arg value="rosado.cloak.actions"/>
      <arg value="rosado.cloak.main" />
</java>
</target>
 
<target name="compile" depends="compile-clojure-src"
          description="Compile Cloak.">
</target>
 
  <target name="run"
depends="">
<java classname="rosado.cloak"
classpathref="run.classpath"
          fork="true"
          spawn="false">
      <sysproperty key="java.library.path" path="${native.lib.dir}" />
</java>
</target>
 
  <target name="jar" depends="compile"
          description="Package compiled *.class files into a jar.">
    <jar destfile="${dist.dir}/rosado.cloak.jar">
      <fileset dir="${build.classes.dir}" includes="rosado/**/*.class"/>
    </jar>
  </target>
 
<!-- UTIL TARGETS -->
 
<target name="props">
<echoproperties />
</target>
 
</project>