Hi all, I am playing around with using Clojure to control Ant, something along the lines of Groovy's Gant. I don't know how far I will take this-- right now it is serving as a code example for the book.
Two questions: (1) Anybody interested in seeing lancet carried forward into a real project? (2) Below is an example of lancet syntax (compare with Clojure's own build.xml). Any big likes/dislikes? Cheers, Stuart (project {:name "clojure" :default "jar"} (properties :src "src" :jsrc (i :src "/jvm") :cljsrc (i :src "/clj") :build "classes" :clojure_jar "clojure.jar" :bootclj (i :cljsrc "/clojure/boot.clj")) (target {:name "test"} (echo {:message "init target"})) (target {:name "compile" :depends "init" :description "Compile Java sources."} (javac {:srcdir (i :jsrc) :destdir (i :build) :includejavaruntime "yes" :debug "true" :target "1.5"})) (target {:name "init"} (tstamp) (mkdir {:dir (i :build)})) (target {:name "clean" :description "Remove autogenerated files and directories"} (delete {:dir (i :build)})) ) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---