aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2008-08-07 16:28:59 +0000
committerStuart Sierra <mail@stuartsierra.com>2008-08-07 16:28:59 +0000
commit193b318a92fa2e1aca0e143defa60113423702d1 (patch)
treeb08f0970f251e7fdae286c8d92bd4561fb634095
parent657c13b36f467ad6548db9f2b2ecc1094e87f324 (diff)
build.xml: Fixed to use correct classpath in JAR.
-rw-r--r--build.xml31
1 files changed, 24 insertions, 7 deletions
diff --git a/build.xml b/build.xml
index 605798b4..2f4f1db5 100644
--- a/build.xml
+++ b/build.xml
@@ -4,18 +4,35 @@
Pack all clojure-contrib sources into a JAR.
</description>
+ <!-- The JAR file to create. -->
<property name="jarfile" location="clojure-contrib.jar"/>
- <target name="jar" description="Create jar file.">
- <jar jarfile="${jarfile}">
- <fileset dir="." includes="CPL.TXT"/>
- <fileset dir="." includes="**/*.clj"/>
- </jar>
- </target>
+ <!-- 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}/clojure/contrib"/>
<target name="clean"
- description="Remove autogenerated files and directories.">
+ 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="." includes="**/*.clj"/>
+ </copy>
+ <jar jarfile="${jarfile}" basedir="${dist.root}"/>
+ </target>
+
</project>