Skip to content

Commit

Permalink
Mention ant stdin bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Feb 19, 2011
1 parent 338dbbc commit cc740d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,15 @@ See the plugin task's help for more information.
packages; on Ubuntu try ia32-sun-java6-bin. Once you've installed
it, set the <tt>JAVA_CMD</tt> environment variable to
<tt>/usr/lib/jvm/ia32-java-6-sun/bin/java</tt>.

**Q:** I don't have access to stdin inside my project.
**A:** There's a bug in the Ant library that Leiningen uses to spawn
new processes that blocks access to console input. This means that
functions like <tt>read-line</tt> will not work as expected in most
contexts, though the <tt>repl</tt> task necessarily includes a
workaround. You can also use <tt>java -cp `lein classpath`
my.main.namespace</tt> to launch a process with the correct
classpath that still has access to stdin.

## Contributing

Expand Down
13 changes: 5 additions & 8 deletions TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ you.

(defproject myproject "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]])
:dependencies [[org.clojure/clojure "1.2.0"]])

Fill in the :description with a short paragraph so that your project
will show up in search results once you upload to Clojars (as
Expand All @@ -73,8 +72,8 @@ easy to swap out any version of Clojure. If you're using Clojure
Contrib, make sure that version matches the Clojure version.

If you've got a simple pure-clojure project, you will be fine with the
default of depending only on Clojure and Contrib, but otherwise you'll
need to list other dependencies.
default of depending only on Clojure, but otherwise you'll need to
list other dependencies.

## Dependencies

Expand Down Expand Up @@ -143,7 +142,7 @@ to fetch it, you can do that too:

$ lein deps

Copying 4 files to ~/src/myproject/lib
Copying 3 files to ~/src/myproject/lib
Copied :dependencies into ~/src/myproject/lib.

Dependencies are downloaded from Clojars, the central Maven (Java)
Expand Down Expand Up @@ -301,7 +300,6 @@ file should look like this:
(defproject myproject "1.0.0-SNAPSHOT"
:description "This project is MINE."
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
[org.apache.lucene/lucene-core "3.0.2"]
[robert/hooke "1.1.0"]]
:main myproject.core)
Expand All @@ -323,10 +321,9 @@ Now we're ready to generate your uberjar:

$ lein uberjar
Cleaning up
Copying 4 files to /home/phil/src/leiningen/myproject/lib
Copying 3 files to /home/phil/src/leiningen/myproject/lib
Created ~/src/myproject/myproject-1.0.0.jar
Including myproject-1.0.0-SNAPSHOT.jar
Including clojure-contrib-1.2.0.jar
Including hooke-1.1.0.jar
Including clojure-1.2.0.jar
Including lucene-core-3.0.2.jar
Expand Down

0 comments on commit cc740d0

Please sign in to comment.