On Sat, Jun 4, 2011 at 11:43 PM, flebber <flebber.c...@gmail.com> wrote:
> Yeah I am using counterclockwise as well.

The easiest process is:
* lein new myproject
* cd myproject
* lein deps

In Eclipse, create new Java project in the myproject folder (it will
pick up the dependencies downloaded above). Right-click on the project
and enable Clojure language support. CCW will add Clojure JARs to the
top level of your project - you don't want this (you want to rely on
the lib/ folder managed by Leiningen) - so remove the newly added JARs
and then fix the build path (to remove those 'dead' JARs).

At this point, you should be able to right-click on the project and
Run As... Clojure Application to start a REPL inside Eclipse. You
should also be able to open and edit src and test files.

If you add dependencies to project.clj, you'll need to do the following:
* close the REPL in Eclipse
* at the command line, run lein deps
* in Eclipse, update the build path to include the dependency changes
* right-click the project and Run As... Clojure Application to start
the REPL again

Since you won't change dependencies all that often, this shouldn't be
too burdensome (but it sure would be nice to automate it in CCW).

HTH,
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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