        (redirect-io in out)
        (fn [])
        Thread.
-       (reset! thread))
-  (.start @thread))
+       (reset! thread)
+       .start))
 
 (defmacro start-thread
   [thread in out & body]

  (:import [com.hypirion.io ClosingPipe Pipe])
  (:gen-class))

(leiningen.cljsbuild/activate)

(def namespace-name (str *ns*))

(defn get-project-clj-path

(defn -main
  [cmd path & args]
  (System/setProperty "jline.terminal" "dumb")
  (when-let [project-map (read-project-clj path)]
    (when (:cljsbuild project-map)
      (leiningen.cljsbuild/activate))
    (case cmd
      "run" (if (is-android-project? path)
              (doseq [sub-cmd ["build" "apk" "install" "run"]]
                (apply leiningen.droid/droid project-map sub-cmd args))
              (leiningen.run/run project-map))
      "build" (if (is-android-project? path)
                (apply leiningen.droid/droid project-map "release" args)
                (leiningen.uberjar/uberjar project-map))
      "repl" (if (is-android-project? path)
               (doseq [sub-cmd ["doall" "repl"]]
                 (apply leiningen.droid/droid project-map sub-cmd args)
                 (Thread/sleep 10000))
               (leiningen.repl/repl project-map))
      nil))
  (System/exit 0))
