Problems with Windows paths
Reported by Alexey Verkhovsky | May 28th, 2008 @ 09:15 AM | in current
Hi all,
Lest I forget:
Windows XP Pro SP2
C:\CruiseControl\cruisecontrolrb-1.3.0>ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
We found two minor problems with CC.rb when trying to run on windows.
The first effects the Dashboard saying there is no project. In
boot.rb we had to add a .gsub('\\','/') in #find_home when returning
the USERPROFILE. (Unrelated to our problems, but possibly relevant to
some: at line 8 my system would not require the ':' as it is already
part of SYSTEMDRIVE).
Second, since our USERPROFILE starts C:\Documents and Settings\... the
we need additional quoting in CommandLine#execute around the :stdout
and :stderr options. File.expand_path returns a string with embedded
spaces which would be choked on later. We just wrapped those options
on lines 67 and 68 with quotation marks.
With those two changes, CC.rb is working great for us. Thanks for
your efforts, and I hope these little notes will help other windows
users.
--
Joe Swatosh
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป