Thorfile in selenium-rc-2.1.0 vs Thorfile in selenium-rc-2.2.0

- old
+ new

@@ -6,20 +6,22 @@ fetch_jar joe_build end def fetch_jar - url = "http://release.seleniumhq.org/selenium-remote-control/1.0.1/selenium-remote-control-1.0.1-dist.zip" + url = "http://selenium.googlecode.com/files/selenium-server-standalone-2.0a1.jar" file = File.join("tmp", File.basename(url)) FileUtils.mkdir_p("tmp") system "wget #{url} -O #{file}" unless File.exist?(file) - Zip::ZipFile.open(file) do |zipfile| - jar_file_entry = zipfile.entries.find {|file| file.name =~ /selenium-server\.jar$/} - destination = "vendor/selenium-server.jar" - FileUtils.rm_rf(destination) - zipfile.extract(jar_file_entry, destination) - end + FileUtils.mv("#{file}", "vendor/selenium-server.jar") + +# Zip::ZipFile.open(file) do |zipfile| +# jar_file_entry = zipfile.entries.find {|file| file.name =~ /selenium-server-standalone-2\.0a1\.jar$/} +# destination = "vendor/selenium-server.jar" +# FileUtils.rm_rf(destination) +# zipfile.extract(jar_file_entry, destination) +# end end end