Re: ANT script/task for AOT compiling of clojure files?

2008-11-28 Thread Rich Hickey
On Nov 28, 2008, at 11:55 AM, Stephen C. Gilardi wrote: I am not in favor of creating the directory nor fabricating the classpath. Clojure currently creates the directory. Since that appears unintentional, fixing that would go a long way to improving the behavior that caught me.

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Meikel Brandmeyer
Hi, On 27 Nov., 10:59, Meikel Brandmeyer [EMAIL PROTECTED] wrote: However I have no experience with ant. So how can I set the path via an envirnment variable? Eg. CLOJURE_LIB which is also used by some startup script which was posted. That would make a nice fit. Ok. I looked it up:

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stefan Bodewig
On 2008-11-26, Stuart Sierra [EMAIL PROTECTED] wrote: The Ant task looks like this: property name=cljsrc location=${src}/clj/ property name=build location=classes/ property name=precompile location=${cljsrc}/precompile.clj/ ... target name=core

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stefan Bodewig
On 2008-11-27, Meikel Brandmeyer [EMAIL PROTECTED] wrote: However I have no experience with ant. So how can I set the path via an envirnment variable? property environment=prefix/ Eg. CLOJURE_LIB which is also used by some startup script which was posted. the value of the environment

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stephen C. Gilardi
On Nov 27, 2008, at 7:41 AM, Stefan Bodewig wrote: Looks pretty easy and it would probably take me longer to sign and send the CA than to put together an antlib.xml file 8-) If anybody is interested, let me know. I'm interested in making common developer tasks as easy as possible to

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Meikel Brandmeyer
Hi, On 26 Nov., 20:53, Stuart Sierra [EMAIL PROTECTED] wrote:         target name=core depends=compile                 description=Precompile Clojure core sources.                 java classname=clojure.lang.Script                       classpath=${build}:${cljsrc}                        

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stefan Bodewig
On 2008-11-26, Stuart Sierra [EMAIL PROTECTED] wrote: The Ant task looks like this: property name=cljsrc location=${src}/clj/ property name=build location=classes/ property name=precompile location=${cljsrc}/precompile.clj/ ... target name=core depends=compile

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stefan Bodewig
On 2008-11-27, Stephen C. Gilardi [EMAIL PROTECTED] wrote: On Nov 27, 2008, at 7:41 AM, Stefan Bodewig wrote: Looks pretty easy and it would probably take me longer to sign and send the CA than to put together an antlib.xml file 8-) If anybody is interested, let me know. I'm interested

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stefan Bodewig
OK, I skimmed through compile and RT and it seems as if you just needed to construct a proper URLClassLoader with the directories you need on the classpath, set this one as the context classloader and set *use-context-classloader* to true before you invoke compile. Yes, works. The attached

Re: ANT script/task for AOT compiling of clojure files?

2008-11-27 Thread Stephen C. Gilardi
Very cool Stefan, thanks! I'm planning to write a clojure.compile/main in Clojure along the lines of what you came up with. I think the current Compile.java is sufficient for bootstrapping clojure.jar--with the finally fix you recommend. Thanks, --Steve On Nov 27, 2008, at 11:29 AM,

ANT script/task for AOT compiling of clojure files?

2008-11-26 Thread BrianS
I am looking to see if anyone has come up with an ANT task or script for compiling clojure CLJ files using the clojure compiler. Much appreciated if anyone has anything to contribute. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: ANT script/task for AOT compiling of clojure files?

2008-11-26 Thread Stuart Sierra
On Nov 26, 1:45 pm, BrianS [EMAIL PROTECTED] wrote: I am looking to see if anyone has come up with an ANT task or script for compiling clojure CLJ files using the clojure compiler. Much appreciated if anyone has anything to contribute. Hi Brian, The latest Clojure releases (post 1101) use