On Sun, Nov 2, 2008 at 7:29 PM, James M. Lawrence
<[EMAIL PROTECTED]> wrote:
>
> For jruby, Rake cannot use multi-argument system() for ruby(). I
> think our hand is forced on this one. All arguments will have to be
> escaped and passed to single-argument system(). RUBY should not
> contain the bindir path, and the constant should probably be removed
> anyway.
system("cmd.exe", "/c", "test.bat", *args) # works
system("cmd.exe", "/c", "c:\\path\\to\\test.bat", *args) # works
system("cmd.exe", "/c", "c:\\path\\to\\foo foo\\test.bat", *args) # fails
system("cmd.exe", "/c", "\"c:\\path\\to\\foo foo\\test.bat\"", *args) # fails
For jruby.bat and multi-argument sh() we could use the first form
above, though bindir is still a problem. I don't know of another
solution.
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel