aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorTom Faulhaber <git_net@infolace.com>2009-04-06 00:41:47 +0000
committerTom Faulhaber <git_net@infolace.com>2009-04-06 00:41:47 +0000
commitcbdb4592179b4720b1d4286970bec277b14ee84a (patch)
tree63a039c3fa850349e9004396a6819a72e06c906c /build.xml
parenta4b598f1986fb828ab7996533f68ce4ad4f7a38e (diff)
Added a warning if we don't have a clojure.jar to support compilation
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index f9d6f9dd..f7ba52b7 100644
--- a/build.xml
+++ b/build.xml
@@ -69,7 +69,15 @@
<target name="test" depends="test_clojure,test_contrib,test_datalog"
description="Run all tests"/>
- <target name="compile_clojure" depends="init"
+ <target name="check_hasclojure" depends="init"
+ description="Print a warning message if clojure.jar is undefined"
+ unless="hasclojure">
+ <echo>WARNING: You have not defined a path to clojure.jar so I can't compile files.
+ This will cause some parts of clojure.contrib not to work (e.g., pretty print).
+ To enable compiling run "ant -Dclojure.jar=&lt;...path to clojure.jar..&gt;"
+ </echo>
+ </target>
+ <target name="compile_clojure" depends="init,check_hasclojure"
description="Compile Clojure sources."
if="hasclojure">
<java classname="clojure.lang.Compile">