You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2009/12/20 20:48:59 UTC

svn commit: r892647 - /buildr/trunk/lib/buildr/scala/shell.rb

Author: boisvert
Date: Sun Dec 20 19:48:59 2009
New Revision: 892647

URL: http://svn.apache.org/viewvc?rev=892647&view=rev
Log:
Use jline.jar (if available) for nicer REPL keyboard action

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

Modified: buildr/trunk/lib/buildr/scala/shell.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/scala/shell.rb?rev=892647&r1=892646&r2=892647&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/scala/shell.rb (original)
+++ buildr/trunk/lib/buildr/scala/shell.rb Sun Dec 20 19:48:59 2009
@@ -41,11 +41,15 @@
           'scala.home' => Scalac.scala_home
         }
 
+        jline = [File.expand_path("lib/jline.jar", Scalac.scala_home)].find_all do |f|
+          File.exist? f
+        end
+
         Java::Commands.java 'scala.tools.nsc.MainGenericRunner',
                             '-cp', cp.join(File::PATH_SEPARATOR),
         {
           :properties => props.merge(rebel_props(project)),
-          :classpath => Scalac.dependencies,
+          :classpath => Scalac.dependencies + jline,
           :java_args => rebel_args
         }
       end