aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2010-01-04 11:35:38 -0500
committerStuart Sierra <mail@stuartsierra.com>2010-01-04 11:35:38 -0500
commit60a6fae3d59acd0a0c7533f8c5eb42c30621bbb2 (patch)
tree63f5afbcc2681776ec210f6660c51e6f93532fb4 /build.xml
parentaee5bb26985af79146a26a2777ac17eba7af589b (diff)
Add ZIP dist target to build1.0.0-RC1
Requires setting contrib version in build.xml
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 6e1e337c..7dc70d00 100644
--- a/build.xml
+++ b/build.xml
@@ -8,6 +8,9 @@
<property name="src" location="src"/>
<property name="build" location="classes"/>
+ <property name="dist" location="dist"/>
+ <property name="contrib.version.label" value="1.0.0-RC1"/>
+ <property name="zip" location="clojure-contrib-${contrib.version.label}.zip"/>
<available property="hasclojure" file="${clojure.jar}"/>
@@ -28,7 +31,9 @@
<target name="clean" description="Remove generated files and directories.">
<delete file="${jarfile}"/>
<delete file="${slimjarfile}"/>
+ <delete file="${zip}"/>
<delete dir="${build}"/>
+ <delete dir="${dist}"/>
</target>
<target name="test_clojure"
@@ -258,5 +263,16 @@
<deploy target-dir="${stable.repo.dir}"/>
</target>
-
+ <target name="dist" depends="jar"
+ description="Builds distribution ZIP file.">
+ <property name="distdir" value="${dist}/clojure-contrib-${contrib.version.label}"/>
+ <mkdir dir="${distdir}"/>
+ <copy todir="${distdir}" includeEmptyDirs="false">
+ <fileset dir="${basedir}">
+ <exclude name="**/.git/**"/>
+ <exclude name="**/*.class"/>
+ </fileset>
+ </copy>
+ <zip basedir="${dist}" destfile="${zip}"/>
+ </target>
</project>