Suggestion for setting ANDROID_SQL_HOME in Rakefile

12 views
Skip to first unread message

deegchr...@gmail.com

unread,
Mar 23, 2013, 10:56:22 PM3/23/13
to sqld...@googlegroups.com
Hello,

I've been pulling/building SqlDroid on my Linux PC.  I don't normally have the Android SDK in my path so the "which dx" command in the Rakefile fails.  I've made the following change to the Rakefile to run the command only if the environment variables aren't already set:

ANDROID_SDK_HOME = ENV['ANDROID_SDK_HOME'] || ENV['ANDROID_HOME'] || File.dirname(File.dirname(`which dx`))

Thanks,
DG

Uwe Kubosch

unread,
Mar 24, 2013, 4:31:06 AM3/24/13
to <sqldroid@googlegroups.com>
Hi !

Could you take a look at the current Rakefile on master and see if it is satisfactory?



On 2013-03-24, at 03:56, deegchr...@gmail.com wrote:

> I've been pulling/building SqlDroid on my Linux PC. I don't normally have the Android SDK in my path so the "which dx" command in the Rakefile fails. I've made the following change to the Rakefile to run the command only if the environment variables aren't already set:
>
> ANDROID_SDK_HOME = ENV['ANDROID_SDK_HOME'] || ENV['ANDROID_HOME'] || File.dirname(File.dirname(`which dx`))

--
Uwe Kubosch
Systems Developer
Datek Wireless AS
u...@datek.no
http://datek.no/


deegchr...@gmail.com

unread,
Mar 24, 2013, 5:44:55 PM3/24/13
to sqld...@googlegroups.com
Thanks Uwe, that works for me. :)
Reply all
Reply to author
Forward
0 new messages