This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rewriting Java code in Clojure and compiling it

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I use Clojure to write a couple of scripts and hacks but what if you want to use it to substitute my Java code (like Spring beans, beans in general, Servlets)?
http://clojure.org/compilation
Any special points I should pay attention to?
Clojure provides compilation facility, for example:

Any idea how integrate this facility into Ant or Maven?
Thanks.
 
Sean Corfield
Ranch Hand
Posts: 302
10
Clojure Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you taken a look at Leiningen? It's a build tool for Clojure that's very easy to use and wraps up Maven under the hood (I'm not sure of the exact details - I'm an ant guy, not a Maven guy). Specific things Leiningen can do include running tests, compiling Clojure code, packaging it into a JAR file and so on.
 
Chris Houser
author
Greenhorn
Posts: 22
Clojure Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leiningen is a solid recommendation. For a more purely maven approach, see https://github.com/talios/clojure-maven-plugin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic