Fixed pathing issues. Calls it absolutely now based on PhoneGap SDK

This commit is contained in:
Brock Whitten 2010-02-25 10:28:16 -08:00
parent c3c5d522a3
commit be5c31ee1c

View File

@ -42,9 +42,10 @@ class Build
# TODO need to allow more flexible SDK targetting
# TODO validate Android SDK
def create_android
target_id = 5 # `android list targets` =~ /id:\s*(\d+).*android-5/ ? $1 : 5
android_exec = File.join(@android_sdk_path, "tools", "android");
target_id = 5
puts "Creating Android project... #{ target_id }"
`android create project -t #{ target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }`
`#{android_exec} create project -t #{ target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }`
end
def include_www