Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Adding in dev libraries into classpath #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
@@ -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"]])
7 changes: 6 additions & 1 deletion src/leiningen/eclipse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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*."
Expand Down