Using lein.bat with powershell I found two issues: First, there is the aforementioned {param($a,$f) (new-object System.Net.WebClient).DownloadFile <<<< ($a, $f)} DotNetMethodException.
This could be solved by starting the Command Prompt as an Administrator (shift + right-click on the cmd.exe, then "Run as administrator"). Then it's able to download the leiningen jar-file. But there is a second problem. It (apparently) tries two save the jar file in C:\Users\<Username>\.lein\self-installs\leiningen-x.y.z-standalone.jar But it looks like it doesn't deal correctly with spaces in the path. If your Username were to be "John Doe", only the part in front of the space is used as the install path. So the leiningen jar-file would actually be a file named "John" in the directory C:\Users, instead of C:\Users\John Doe\.lein\self-installs\leiningen-x.y.z-standalone.jar. I hope this helps :-) Am Sonntag, 31. März 2013 16:08:46 UTC+2 schrieb David Powell: > > > powershell -Command "& {param($a,$f) >> (new-object System.Net.WebClient).DownloadFile($a, $f)}" %~2 %~1 >> > > Ah, yeah. %~1 and %~2 strip the quotes off the parameters, which isn't a > good idea. > Something like this should work: > > >> powershell -Command "& {param($a,$f) >> (new-object System.Net.WebClient).DownloadFile($a, $f)}" "%~2" "%~1" >> > > >> [I can't believe both that in 2013 MS Windows does not handle such >> cases, and that Windows Administrators still create User profiles with >> spaces inside] >> > > To be fair, whilst batch file syntax is horrible, it is more a lein.bat > problem in this case. If we pass two parameters without quotes, and one > has spaces in, it isn't surprising that it gets interpreted wrongly. > > I'll submit a patch to fix the handling of profiles with spaces in them in > lein.bat > > > -- > Dave > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.