Tuesday, May 31, 2016

How to input ${sdk.dir} to build.xml | Apache Ant | Ubuntu

Assuming, $ANDROID_HOME (environmental variable ) refers to android sdk directory, you can inject the ANDROID_HOME  into the sdk.dir property using the following ant command.

$ ant debug -Dsdk.dir=$ANDROID_HOME

ANDROID_HOME must be an absolute path such as /home/username/something/android-sdk





If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments