Re: Problem with clojure-maven-plugin and ns metadata

2009-09-07 Thread Stuart Sierra
On Mon, Sep 7, 2009 at 8:54 PM, Mark Derricutt wrote: > Initially I didn't like that as people -may- not stick to good convention > and use a different namespace than filename, but I think failing and making > them conform to a good standard is acceptable. I think if the namespace name doesn't ma

Re: Problem with clojure-maven-plugin and ns metadata

2009-09-07 Thread Stuart Sierra
It might be sufficient to scan for files containing "(ns" and then determine the namespace name from the file name ("." becomes "/" and "-" becomes "_"). Otherwise, you might need to depend directly on Clojure and use its reader. I don't think it will work for the plugin, but I wrote a lib in Cl

Re: Problem with clojure-maven-plugin and ns metadata

2009-09-07 Thread Mark Derricutt
I had considered just searching .clj files and using the file name (filtering on (ns sounds good thou). Initially I didn't like that as people -may- not stick to good convention and use a different namespace than filename, but I think failing and making them conform to a good standard is acceptable

Re: Problem with clojure-maven-plugin and ns metadata

2009-09-07 Thread Mark Derricutt
Doh - I suspected I'd have something that might trip me up on that namespace discovery :( Metadata is something I've not used too much yet.. I'll take a look at it tonight... -- Pull me down under... On Tue, Sep 8, 2009 at 11:10 AM, Stuart Sierra wrote: > Hi Mark, > > I like your clojure-mave