Permalink
Browse files

put clojure/clojure-contrib at head of classpath by default

  • Loading branch information...
trampoline committed Sep 23, 2009
1 parent 6c15999 commit 8d35ed4b5455534e75deb76ffce2198ec4df1a97
Showing with 6 additions and 2 deletions.
  1. +6 −2 clojure
View
@@ -177,12 +177,16 @@ def expand_clj_lib(options, lib)
end
def expand_classpath(options)
- paths = options[:cp_elements].map do |(type,cp)|
+ paths = []
+
+ paths += options[:default_libs].map{ |lib| expand_clj_lib(options, lib) }.flatten
+
+ paths += options[:cp_elements].map do |(type,cp)|
p = self.send("expand_#{type.to_s}", options, cp)
end.flatten
- paths += options[:default_libs].map{ |lib| expand_clj_lib(options, lib) }.flatten
paths += expand_clj_lib(options, clj_home(options)) if clj_home(options)
+
paths
end

0 comments on commit 8d35ed4

Please sign in to comment.