logo       

Backslash problem when deploying to Windows via CYGWIN sshd: msg#00184

lang.ruby.capistrano.general

Subject: Backslash problem when deploying to Windows via CYGWIN sshd


I'm trying to use Capistrano to simplify our Java build and deploy
process, but I'm running into a problem where I get either no
backslashes or two backslashes, but never one.

An example of the commands we are using is:

run "export JAVA_HOME='c:\Program\ Files\Java\jdk1.5.0'"

As expected, no backslashes are shown via puts or in the run output.
If I escape the backslashes, puts displays one backslash, but run
displays two causing the build to fail.

I may need to migrate the build server to a unix box, but hopefully
there is something I'm missing to make this work in the short term.
It's unknown whether the problem is with cap or the ssh gem. Cygwin
does not appear to be a problem since this is currently working from a
bash script.

Any ideas?

Happy New Year,

Kevin


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise