From: Hauke Mehrtens Date: Mon, 17 Aug 2015 16:05:54 +0000 (+0200) Subject: android: show stack trace if gradle fails X-Git-Tag: 1.0.0-RC1~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7434df6305bd9c9e7ec5f6b10c5b55be819e9b9f;p=contrib%2Fiotivity.git android: show stack trace if gradle fails When gradle fails for whatever reason it does not show so many information in most situations. This patch makes it show a complete stack trace which makes identifying the issue much easier. Change-Id: I943d8fbbb9b8c1e4a068330e6d1cd6edc4954d6c Signed-off-by: Hauke Mehrtens Reviewed-on: https://gerrit.iotivity.org/gerrit/2219 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- diff --git a/android/android_api/SConscript b/android/android_api/SConscript index 11983d7..5fba6e7 100644 --- a/android/android_api/SConscript +++ b/android/android_api/SConscript @@ -43,6 +43,6 @@ if not os.path.exists(android_home + '/platforms/android-21') or not os.path.exi os.system(android_home + '/tools/android') jdk_env = Environment(ENV=os.environ) -jdk_env['BUILDERS']['Gradle'] = Builder(action = env.get('ANDROID_GRADLE') + ' build -b' + os.getcwd()+'/build.gradle -PTARGET_ARCH=%s -PRELEASE=%s' %(ANDROID_TARGET_ARCH, ANDROID_RELEASE)) +jdk_env['BUILDERS']['Gradle'] = Builder(action = env.get('ANDROID_GRADLE') + ' build -b' + os.getcwd()+'/build.gradle -PTARGET_ARCH=%s -PRELEASE=%s --stacktrace' %(ANDROID_TARGET_ARCH, ANDROID_RELEASE)) jdk_env.Gradle(target="base/objs", source="base/src/main/java/org/iotivity/base/OcResource.java")