I would handle that by making a new package type. You can do that by 
implementing a package_as_<type> method. This method can create a preconfigured 
JarTask that includes both the clj source files and the class files by 
including both the target and source of the compile task. 
buildr/java/packaging.rb contains the package_as_jar implementation. That's 
probably the closest to what you want.

Pepijn
 

On 16 Jul 2010, at 08:20, Chris Dean <ctd...@sokitomi.com> wrote:

> I'm working on adding Clojure support and have a question about
> packaging. 
> 
> One common way to package up Clojure projects is put both the Clojure
> .clj source files and all the .class files in a single jar file.  Can
> someone give me some pointers on how to do that?
> 
> Cheers,
> Chris Dean

Reply via email to