aboutsummaryrefslogtreecommitdiff
path: root/build.xml
blob: 1a0cf97733482a326184872ffde6bbfe387c7e96 (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
<project name="clojure-contrib" default="jar">

  <description>
    Pack all clojure-contrib sources into a JAR.
  </description>

  <!-- The JAR file to create. -->
  <property name="jarfile" location="clojure-contrib.jar"/>

  <!-- The top-level directory of the JAR file. -->
  <property name="dist.root" location="dist"/>

  <!-- The directory under dist.root that matches the
       classpath "clojure.contrib". -->
  <property name="dist.path" location="${dist.root}"/>

  <target name="clean"
          description="Remove generated files and directories.">
    <delete dir="${dist.root}"/>
    <delete file="${jarfile}"/>
  </target>

  <target name="dirs"
          description="Create build dirs.">
    <mkdir dir="${dist.path}"/>
  </target>

  <target name="jar"
          description="Create jar file."
          depends="clean,dirs">
    <copy todir="${dist.path}">
      <fileset dir="." includes="CPL.TXT"/>
      <fileset dir="./src" includes="clojure/contrib/**/*.clj"/>
    </copy>
    <jar jarfile="${jarfile}" basedir="${dist.root}"/>
  </target>

</project>