Permalink
Newer
100644
30 lines (25 sloc)
1.03 KB
|
68e08fb
|
||
| 1 | <project name="ring" default="jar"> | |
| 2 | <description>Pack all sources into a JAR.</description> | |
| 3 | ||
|
203cbbd
|
||
| 4 | <property name="jarfile" location="ring.jar"/> | |
|
46366c4
|
||
| 5 | <property name="depsfile" location="deps.zip"/> | |
| 6 | <property name="depsurl" value="http://cloud.github.com/downloads/mmcgrana/ring/deps.zip"/> | |
|
203cbbd
|
||
| 7 | <property name="depsdir" location="deps/"/> | |
|
68e08fb
|
||
| 8 | ||
| 9 | <target name="clean" description="Remove generated files and directories."> | |
| 10 | <delete file="${jarfile}"/> | |
|
203cbbd
|
||
| 11 | <delete file="${depsfile}"/> | |
| 12 | <delete dir="${depsdir}"/> | |
|
68e08fb
|
||
| 13 | </target> | |
| 14 | ||
| 15 | <target name="jar" description="Create jar file."> | |
| 16 | <jar jarfile="${jarfile}"> | |
| 17 | <path location="LICENSE"/> | |
| 18 | <fileset dir="./src" includes="ring/**/*.clj"/> | |
| 19 | <fileset dir="./test" includes="ring/**/*.clj"/> | |
| 20 | </jar> | |
| 21 | </target> | |
|
203cbbd
|
||
| 22 | ||
| 23 | <target name="deps" description="Download and unpack dependencies."> | |
| 24 | <get usetimestamp="true" description="Ring dependencies." | |
| 25 | src="${depsurl}" dest="${depsfile}"/> | |
| 26 | <unzip src="${depsfile}" dest="."/> | |
|
5497a81
|
||
| 27 | <delete file="${depsfile}"/> | |
|
203cbbd
|
||
| 28 | </target> | |
|
68e08fb
|
||
| 29 | </project> |