Stuart,
Not that I can remember the last time I used Ant but just want to say
'way to go'.
That syntax is so much more practical than Ant's choice of XML(Wasn't
XML based on S-Exps anyway, lol, we're coming full circle now). I'm
guessing that those folks that use Ant a lot will be glad to have
their build files shrinking to fractions of what they would if they
continue in classic Ant build XML.
Congrats also on the Clojure book !
-Justin
On Nov 6, 10:48 am, Stuart Halloway <[EMAIL PROTECTED]> wrote:
> 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---