technomancy/leiningen — pull request #1383 by dannypurcell (2013-11-30 17:15:55+00:00)
Title: Fixes classpath issue under msys

Proposed fix for:
https://github.com/technomancy/leiningen/issues/1382

I would like to have some automated tests for this but I am not sure of the best way to package them reliably. Please let me know if there is an established method for testing against the shell script without setting up an msys install in this repo.

Manual verification process:
On Windows: (My system is Windows 7 x64)
* Install MinGW
* Install Cmder or preferred console emulator
* Install lein script via non-windows instructions here: http://leiningen.org/
* Download lein script from stable https://raw.github.com/technomancy/leiningen/stable/bin/lein
* Place it on your $PATH where your shell can find it (eg. ~/bin)
* Set it to be executable (chmod a+x ~/bin/lein)
* Run lein, receive error:
```
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.main
...
Could not find the main class: clojure.main. Program will exit.
```
* Apply patch
* Run lein successfully.