diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-04-06 00:41:47 +0000 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-04-06 00:41:47 +0000 |
commit | cbdb4592179b4720b1d4286970bec277b14ee84a (patch) | |
tree | 63a039c3fa850349e9004396a6819a72e06c906c /build.xml | |
parent | a4b598f1986fb828ab7996533f68ce4ad4f7a38e (diff) |
Added a warning if we don't have a clojure.jar to support compilation
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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=<...path to clojure.jar..>" + </echo> + </target> + <target name="compile_clojure" depends="init,check_hasclojure" description="Compile Clojure sources." if="hasclojure"> <java classname="clojure.lang.Compile"> |