Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding in dev libraries into classpath #2

Open
wants to merge 1 commit into from

1 participant

@robdaemon

To support using lein-ring from within Counterclockwise, I've added folder traversal to the list-libraries function.

My commit message is below:

Increasing clojure version to 1.2.1
Increasing clojure-contrib version to 1.2.0
Increasing leiningen version to 1.3.1
Increasing lein-clojars version to 0.7.0

Modifying list-libraries to support traversing into subfolders, allowing lib/dev to enter the classpath

Robert Roland Increasing lein-eclipse version to 1.1.0
Increasing clojure version to 1.2.1
Increasing clojure-contrib version to 1.2.0
Increasing leiningen version to 1.3.1
Increasing lein-clojars version to 0.7.0

Modifying list-libraries to support traversing into subfolders, allowing lib/dev to enter the classpath
2549dba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 14, 2011
  1. Increasing lein-eclipse version to 1.1.0

    Robert Roland authored
    Increasing clojure version to 1.2.1
    Increasing clojure-contrib version to 1.2.0
    Increasing leiningen version to 1.3.1
    Increasing lein-clojars version to 0.7.0
    
    Modifying list-libraries to support traversing into subfolders, allowing lib/dev to enter the classpath
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 6 deletions.
  1. +5 −5 project.clj
  2. +6 −1 src/leiningen/eclipse.clj
View
10 project.clj
@@ -1,6 +1,6 @@
-(defproject lein-eclipse "1.0.0"
+(defproject lein-eclipse "1.1.0"
:description "A leiningen plugin to create Eclipse project descriptor files."
- :dev-dependencies [[org.clojure/clojure "1.1.0"]
- [org.clojure/clojure-contrib "1.1.0"]
- [leiningen "1.1.0"]
- [lein-clojars "0.5.0"]])
+ :dev-dependencies [[org.clojure/clojure "1.2.1"]
+ [org.clojure/clojure-contrib "1.2.0"]
+ [leiningen "1.3.1"]
+ [lein-clojars "0.7.0"]])
View
7 src/leiningen/eclipse.clj
@@ -23,8 +23,13 @@
(.isDirectory (File. arg)))
(defn- list-libraries
+ "Find all libraries in the project recursively, including lib and lib/dev"
[project]
- (map #(.getPath %) (.listFiles (File. (:library-path project)))))
+ (map
+ #(.getPath %)
+ (filter
+ #(not (.isDirectory %))
+ (file-seq (java.io.File. (:library-path project))))))
(defn- create-classpath
"Print .classpath to *out*."
Something went wrong with that request. Please try again.