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:04:30 UTC
svn commit: r787474 - /buildr/trunk/lib/buildr/core/shell.rb
Author: djspiewak
Date: Tue Jun 23 00:04:30 2009
New Revision: 787474
URL: http://svn.apache.org/viewvc?rev=787474&view=rev
Log:
Added automatic resolution of JLine
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=787474&r1=787473&r2=787474&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/shell.rb (original)
+++ buildr/trunk/lib/buildr/core/shell.rb Tue Jun 23 00:04:30 2009
@@ -33,6 +33,8 @@
end
class Clojure < Base
+ JLINE_VERSION = '0.9.94'
+
class << self
def lang
:none
@@ -45,7 +47,6 @@
def launch
fail 'Are we forgetting something? CLOJURE_HOME not set.' unless clojure_home
- fail 'Are we forgetting something? JLINE_JAR not set.' unless jline_jar
cp = project.compile.dependencies.join(File::PATH_SEPARATOR) +
File::PATH_SEPARATOR + project.path_to(:target, :classes) +
@@ -60,9 +61,11 @@
@home ||= ENV['CLOJURE_HOME']
end
- # TODO
def jline_jar
- @jline ||= ENV['JLINE_JAR']
+ jline = Buildr.artifact 'jline:jline:jar:0.9.94'
+ jline.install
+
+ Buildr.repositories.locate jline
end
end
end