clojure-android / lein-droid

A Leiningen plugin for building Clojure/Android projects
Eclipse Public License 1.0
645 stars 56 forks source link

Allow lein-droid to run in IDEs #37

Closed oakes closed 11 years ago

oakes commented 11 years ago

This change checks for the existence of System/console, and if it is null, it falls back on read-line. This allows it to run in environments where System/console doesn't exist, such as in the consoles inside IDEs. They typically work by running the code in a backend process and piping it to/from the GUI, so Java doesn't provide a Console object to them. Your password won't be hidden in this case, but at least it's better than getting a NullPointerException =)

alexander-yakushev commented 11 years ago

Merged, thanks!