+-;; copied from clojure.contrib.find-namespaces
 ;;; find_namespaces.clj: search for ns declarations in dirs, JARs, or CLASSPATH
 
 ;; by Stuart Sierra, http://stuartsierra.com/

  source files; returns the symbol names of the declared namespaces."
  [#^File dir]
  (map second (find-ns-decls-in-dir dir)))

;; agreeing to be bound by the terms of this license.  You must not
;; remove this notice, or any other, from this software.


(ns
  #^{:author "Stuart Sierra",
     :doc "Search for ns declarations in dirs, JARs, or CLASSPATH"}
  clojure.contrib.find-namespaces
  (:require [clojure.contrib.classpath :as cp]
            [clojure.contrib.jar :as jar])
  (import (java.io File FileReader BufferedReader PushbackReader
                   InputStreamReader)
          (java.util.jar JarFile)))


;;; Finding namespaces in a directory tree

