You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by dj...@apache.org on 2009/06/23 02:06:30 UTC

svn commit: r787483 - /buildr/trunk/lib/buildr/core/shell.rb

Author: djspiewak
Date: Tue Jun 23 00:06:30 2009
New Revision: 787483

URL: http://svn.apache.org/viewvc?rev=787483&view=rev
Log:
Added JavaRebel integration to Clojure shell

Modified:
    buildr/trunk/lib/buildr/core/shell.rb

Modified: buildr/trunk/lib/buildr/core/shell.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/shell.rb?rev=787483&r1=787482&r2=787483&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/shell.rb (original)
+++ buildr/trunk/lib/buildr/core/shell.rb Tue Jun 23 00:06:30 2009
@@ -36,6 +36,8 @@
     end
     
     class Clojure < Base
+      include JavaRebel
+      
       JLINE_VERSION = '0.9.94'
       
       class << self
@@ -58,7 +60,11 @@
             'jline:jline:jar:0.9.94'
           ]
         
-        Java::Commands.java 'jline.ConsoleRunner', 'clojure.lang.Repl', :classpath => cp
+        Java::Commands.java 'jline.ConsoleRunner', 'clojure.lang.Repl', {
+          :properties => rebel_props(project),
+          :classpath => cp,
+          :java_args => rebel_args
+        }
       end
       
     private