Re: Ant build.xml snippet: compile

2009-07-22 Thread Meikel Brandmeyer
Hi, Am 22.07.2009 um 20:46 schrieb Christopher Wilson: Sorry if this is a bit OT, but has anyone created an ant or maven jar task (maven: is 'goal' the correct term)? In the few jars that I've created I've AOT compiled my .clj files and hand-created the jar file. The way that I do this is compi

Re: Ant build.xml snippet: compile

2009-07-22 Thread Daniel Renfer
On Wed, Jul 22, 2009 at 2:46 PM, Christopher Wilson wrote: > > Sorry if this is a bit OT, but has anyone created an ant or maven jar > task (maven: is 'goal' the correct term)? In the few jars that I've > created I've AOT compiled my .clj files and hand-created the jar file. > The way that I do th

Re: Ant build.xml snippet: compile

2009-07-22 Thread Christopher Wilson
Sorry if this is a bit OT, but has anyone created an ant or maven jar task (maven: is 'goal' the correct term)? In the few jars that I've created I've AOT compiled my .clj files and hand-created the jar file. The way that I do this is compile to the default clojure "classes" directory, I then pull

Re: Ant build.xml snippet: compile

2009-07-22 Thread Laurent PETIT
2009/7/22 Michael Wood > > 2009/7/22 Howard Lewis Ship : > > > > On Tue, Jul 21, 2009 at 3:17 PM, Laurent PETIT > wrote: > >> Hi, > >> > >> so far my examples were more based on issues with namespaces separated > into > >> multiple pieces than on a namespace / script dichotomy. > >> > >> So while

Re: Ant build.xml snippet: compile

2009-07-22 Thread Michael Wood
2009/7/22 Howard Lewis Ship : > > On Tue, Jul 21, 2009 at 3:17 PM, Laurent PETIT wrote: >> Hi, >> >> so far my examples were more based on issues with namespaces separated into >> multiple pieces than on a namespace / script dichotomy. >> >> So while I understand the interest of separating source

Re: Ant build.xml snippet: compile

2009-07-21 Thread Howard Lewis Ship
On Tue, Jul 21, 2009 at 3:17 PM, Laurent PETIT wrote: > Hi, > > so far my examples were more based on issues with namespaces separated into > multiple pieces than on a namespace / script dichotomy. > > So while I understand the interest of separating source files to be > delivered to production fr

Re: Ant build.xml snippet: compile

2009-07-21 Thread Laurent PETIT
Hi, so far my examples were more based on issues with namespaces separated into multiple pieces than on a namespace / script dichotomy. So while I understand the interest of separating source files to be delivered to production from test files, I don't see how this would solve both problems I rep

Re: Ant build.xml snippet: compile

2009-07-21 Thread Howard Lewis Ship
The other way of looking at these issues is that this style of compilation will *catch* these problematic issues. It seems to me that you should divide src/main/clojure into multiple source folders with an explicit ordering (say src/main/clojure and src/main/clojure-scripts) to distinguish between

Re: Ant build.xml snippet: compile

2009-07-21 Thread Laurent PETIT
Hi Howard, Thanks for sharing that. One point though : I have a mitigate feeling with compiling all namespaces from the same JVM/Clojure environment. I understand that it makes the compilation go fast since ant does not need to relaunch the Compiler in a new jvm for each namespace, but I can see

Ant build.xml snippet: compile

2009-07-21 Thread Howard Lewis Ship
I've written an Ant build script snippet that locates .clj files and compiles them. Not tested on Windows. http://gist.github.com/151387 -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos --~--~-~--~~~---~--~~ You