summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Halloway <stu@thinkrelevance.com>2010-10-04 17:40:13 +0200
committerStuart Halloway <stu@thinkrelevance.com>2010-10-04 17:40:13 +0200
commit5fc75df88c4f56328079d9aa038bd62db12e94ab (patch)
treed7cb31ebebe21d06e4c9da0a5b866ee3d83a7a73
parenta5c2c36cd7f8ddbae68a5071ae7a3d9373b02a01 (diff)
more intermediate build options:
- build without test - test without build - various jars without test
-rw-r--r--build.xml26
1 files changed, 13 insertions, 13 deletions
diff --git a/build.xml b/build.xml
index 90aaa115..1fc9cc94 100644
--- a/build.xml
+++ b/build.xml
@@ -122,6 +122,10 @@
</java>
</target>
+ <target name="build"
+ description="Build Clojure (compilation only, no tests)."
+ depends="compile-java, compile-clojure"/>
+
<target name="compile-tests"
description="Compile the subset of tests that require compilation.">
<delete dir="${test-classes}"/>
@@ -135,8 +139,9 @@
</java>
</target>
- <target name="test-only"
- description="Run clojure tests without recompiling first">
+ <target name="test"
+ description="Run clojure tests without recompiling clojure."
+ depends="compile-tests">
<java classname="clojure.main" failonerror="true">
<classpath>
<path location="${test-classes}"/>
@@ -149,12 +154,7 @@
</java>
</target>
- <target name="test"
- description="Run clojure tests after compiling all sources and test sources"
- depends="compile-java, compile-clojure, compile-tests, test-only">
- </target>
-
- <target name="clojure-jar" depends="test"
+ <target name="clojure-jar" depends="build"
description="Create clojure jar file.">
<jar jarfile="${clojure_jar}" basedir="${build}">
<fileset dir="${cljsrc}">
@@ -169,8 +169,8 @@
<copy file="${clojure_jar}" tofile="${clojure_noversion_jar}" />
</target>
- <target name="clojure-jar-slim" depends="test"
- description="Create clojure-slim jar file (omits compiled Clojure code)">
+ <target name="clojure-jar-slim" depends="build"
+ description="Create clojure-slim jar file (omits compiled Clojure code).">
<jar jarfile="${slim_jar}">
<fileset dir="${build}" includes="clojure/asm/**"/>
<fileset dir="${build}" includes="clojure/lang/**"/>
@@ -187,7 +187,7 @@
<copy file="${slim_jar}" tofile="${slim_noversion_jar}" />
</target>
- <target name="clojure-jar-sources" depends="test"
+ <target name="clojure-jar-sources" depends="build"
description="Create a JAR of Java sources.">
<jar jarfile="${src_jar}" basedir="${jsrc}" includes="**/*">
<fileset dir="${cljsrc}"
@@ -196,7 +196,7 @@
<copy file="${src_jar}" tofile="${src_noversion_jar}" />
</target>
- <target name="all" depends="clojure-jar,clojure-jar-slim,clojure-jar-sources"/>
+ <target name="all" depends="build,test,clojure-jar,clojure-jar-slim,clojure-jar-sources"/>
<target name="clean"
description="Remove autogenerated files and directories.">
@@ -253,7 +253,7 @@
</target>
<target name="dist" depends="clean,clojure-jar"
- description="Build distribution ZIP file">
+ description="Build distribution ZIP file.">
<property name="distdir" value="${dist}/clojure-${clojure.version.label}"/>
<mkdir dir="${distdir}"/>
<copy todir="${distdir}" includeEmptyDirs="false">