Saul <shaz...@gmail.com> writes:

> On Dec 9, 7:53 am, antoniogarrote <listasantoniogarr...@gmail.com>
> wrote:
>> A quick and dirty hack to compile java files in clojure projects 
>> usingleiningen.
>>
>>
>> Just run $lein compile-java to transforms 'src/**.java' into 'classes/
>> **.class'
>>
>
> Many thanks. This works for me and I find it useful. However, in a
> perfect world:
>
> lein compile
>
> would also compile my java source code or call compile-java before
> performing a compile. In fact in this perfect world:
>
> lein swank
>
> would download all dependencies, compile java files and then start a
> swank server. Is there anyway to get leiningen plugins to depend on
> each other or has this behaviour been omitted by design?

If you mean something like Maven "build lifecycle" then I hope
it will be never implemented in Leiningen. I really like tools,
which by default do exactly what I asked for. "lein jar" should only mean
"please create jar on the basis of explicte specification",
nothing more nothing less. I guess this sentence from Leiningen
README:
"Leiningen is a build tool for Clojure designed to not set your hair on
fire."
was inspired by tools being "smarter" than developer. ;)

If you mean explicit joining of commands, e.g.:
$ lein clean compile-java compile jar
or somehow in project.clj then I'm all in favour of this approach.

Br,
Rob

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to