Rakefile in calabash-android-0.4.9 vs Rakefile in calabash-android-0.4.10.pre1
- old
+ new
@@ -1,19 +1,19 @@
require 'bundler'
load 'lib/calabash-android/helpers.rb'
+load 'lib/calabash-android/env.rb'
def build
test_server_template_dir = File.join(File.dirname(__FILE__), 'test-server')
Dir.mktmpdir do |workspace_dir|
@test_server_dir = File.join(workspace_dir, 'test-server')
FileUtils.cp_r(test_server_template_dir, workspace_dir)
- ant_executable = (is_windows? ? "ant.bat" : "ant")
args = [
- ant_executable,
+ Env.ant_path,
"clean",
"package",
"-debug",
"-Dtools.dir=\"#{tools_dir}\"",
"-Dandroid.api.level=17",
@@ -42,12 +42,9 @@
puts "For instuctions see: https://github.com/calabash/calabash-android/wiki/Building-calabash-android"
exit 1
end
build
-
- Rake::Task["install"].execute
-
end
Bundler::GemHelper.install_tasks