From d208f7bea78f1ec5201219d3ee3c12528972b31e Mon Sep 17 00:00:00 2001 From: brianleroux Date: Tue, 7 Sep 2010 19:03:53 -0700 Subject: [PATCH] update build target detection to actually fucking detect --- lib/classic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classic.rb b/lib/classic.rb index 2e218e8d..77d31581 100644 --- a/lib/classic.rb +++ b/lib/classic.rb @@ -49,7 +49,7 @@ class Classic # runs android create project # TODO need to allow more flexible SDK targetting via config.xml def create_android - target_id = `android list targets | grep id:`.split("\n").last.match(/\d/).to_a.first + target_id = `android list targets | grep id:`.split("\n").last.match(/\d+/).to_a.first `android create project -t #{ target_id } -k #{ @pkg } -a #{ @name } -n #{ @name } -p #{ @path }` end