Permalink
Browse files

Use the correct path item separator on windows.

  • Loading branch information...
1 parent cae9f71 commit f15e0998067fb074bd77b4a76d2db96d4ed7db9d @tobias tobias committed Dec 15, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/torquespec/torquespec.rb
View
7 lib/torquespec/torquespec.rb
@@ -47,12 +47,17 @@ def jboss_home_from_server_gem
end
end
+ def self.on_windows?
+ java.lang::System.getProperty( "os.name" ) =~ /windows/i
+ end
+
+
# A somewhat hackish way of exposing client-side gems to the server-side daemon
def self.rubylib
here = File.dirname(__FILE__)
rspec_libs = Dir.glob(File.expand_path(File.join(here, "../../..", "*{rspec,diff-lcs}*/lib")))
this_lib = File.expand_path(File.join(here, ".."))
- rspec_libs.unshift( this_lib ).join(":")
+ rspec_libs.unshift( this_lib ).join(on_windows? ? ";" : ":")
end
# We must initialize the daemon with the same params as passed to the client

0 comments on commit f15e099

Please sign in to comment.