class Buildr::Shell::Clojure

Public Instance Methods

build?() click to toggle source

don't build if it's only Clojure sources

# File lib/buildr/clojure/shell.rb, line 24
def build?
 !has_source?(:clojure) or has_source?(:java) or has_source?(:scala) or has_source?(:groovy)
end
launch(task) click to toggle source
# File lib/buildr/clojure/shell.rb, line 28
def launch(task)
 cp = project.compile.dependencies +
 ::Buildr::Clojure.dependencies +
 [ build? ? project.path_to(:target, :classes) : project.path_to(:src, :main, :clojure) ]
 Java::Commands.java 'jline.ConsoleRunner', 'clojure.lang.Repl', {
 :properties => jrebel_props(project).merge(task.properties),
 :classpath => cp,
 :java_args => jrebel_args + task.java_args
 }
end