technomancy/leiningen — pull request #526 by juergenhoetzel (2012-04-14 17:31:34+00:00)
Title: Invalid classpath entries in .lein-classpath

Aether writes debug information to stdout, resulting in invalid
classpath entries like:

Could not find artifact lein-newnew:lein-newnew:pom:0.2.6 in
central (http://repo1.maven.org/maven2)

On my Linux system i did not recognise this problem. But on a Cygwin system, the invalid entries resulted in a startup delay of 20 seconds when cygpath ist used to calculate the Windows classpath:

CLASSPATH=$(cat .lein-classpath)
juergen@juergen-virtual:~/clojure/leiningen → time cygpath.exe -wp $CLASSPATH
Could
not
find
artifact
lein-newnew;lein-newnew;pom;0.2.6
....
real	0m21.078s
user	0m0.000s
sys	0m0.030s

Also Java debuggers an profilers often write debugging information to stdout. To make classpath output deterministic i propose the use of an optional output-filename.