Hello,

Normally not currently, or, if it works, it would be unintentional :-)

More seriously : this indeed is not an officially supported feature.

The long answer is : it depends on what you mean by "jar".

Eclipse + clojuredev seems capable of producing a very correct jar with what
you want : either just clojure source files, or clojure source files +
compiled class files, or just compiled class files.
No credit to clojuredev here : it's just the use of the out of the box
eclipse's "Export as jar" feature.

But this jar would not be independent, and would still have to be launched
with also clojure.jar (and any other third party jar with clojure or java
code you depend on).

I do not consider this a bad practice to have several jars, one for clojure,
one for your work ...

I would even be tempted to consider it bad practice to embed clojure source
files/classes in your own jar :-). But I can see the advantage for quick
demos, though.


Please also note that eclipse plays well with ant files, so a little ant
file in the root of your java project would solve the problem.

I could consider adding such a file (if written in a generic enough way) to
every newly created clojure project. This could be interesting.


HTH,

-- 
Laurent


2009/2/10 Rayne <[email protected]>

>
> I'm not sure, I've never really used Eclipse that much, and I was
> wondering if it is possible. I can't see a way how, but maybe I'm
> missing something.
>
> Sorry if this isn't quite the right place to post this, but I couldn't
> find another place.
>
> Thanks -Rayne
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to