On Dec 3, 2008, at 4:23 PM, Meikel Brandmeyer wrote:
> I think your initial suggestion, is a good idea. I changed the > build.xml file to look for a property called clojure.jar. If it > exists, we use it and compile the libraries. Otherwise - well - > we don't... > > Invocation: ant -Dclojure.jar=/path/to/clojure.jar Excellent, thanks! I've checked that in. Now (most of) contrib will be compiled and the class files placed in clojure-contrib.jar file if the ant property "clojure.jar" points to clojure.jar (as shown in Meikel's example above). This allows contribs to have "main" routines and in other ways take advantage of AOT compilation goodness. The parts of contrib that aren't compiled are the parts that depend on third party libraries. --Steve (Next we just need to work on getting the build time down...) Buildfile: build.xml init: [mkdir] Created dir: /ext/clojure-contrib/classes compile_clojure: [java] Compiling clojure.contrib.command-line to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.cond to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.def to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.duck-streams to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.except to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.fcase to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.import-static to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.javadoc to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.lazy-seqs to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.memoize to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.mmap to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.ns-utils to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.pred to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.repl-ln to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.seq-utils to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.sql.internal to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.sql to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.str-utils to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.test-is to /ext/clojure- contrib/classes [java] Compiling clojure.contrib.trace to /ext/clojure-contrib/ classes [java] Compiling clojure.contrib.zip-filter to /ext/clojure- contrib/classes jar: [jar] Building jar: /ext/clojure-contrib/clojure-contrib.jar BUILD SUCCESSFUL Total time: 2 seconds --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---