aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-09-12 12:39:02 -0700
committerXavier Ducrohet <xav@android.com>2010-09-12 12:39:02 -0700
commitaab4e50856b58fe4b674d2858b920f2bc452383d (patch)
treef5130a82751a9072672b363868ffa4f44c3ea9a1 /anttasks
parent0a3b9b3c4e73abf826866cec9fca394d690caed2 (diff)
downloadsdk-aab4e50856b58fe4b674d2858b920f2bc452383d.zip
sdk-aab4e50856b58fe4b674d2858b920f2bc452383d.tar.gz
sdk-aab4e50856b58fe4b674d2858b920f2bc452383d.tar.bz2
Display error for missing required attributes in ant tasks
Change-Id: I4a9babcda7a541a7defd226e36bb8f74f88853ed
Diffstat (limited to 'anttasks')
-rw-r--r--anttasks/src/com/android/ant/ApkBuilderTask.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/anttasks/src/com/android/ant/ApkBuilderTask.java b/anttasks/src/com/android/ant/ApkBuilderTask.java
index f7b36bc..0d9b8fb 100644
--- a/anttasks/src/com/android/ant/ApkBuilderTask.java
+++ b/anttasks/src/com/android/ant/ApkBuilderTask.java
@@ -195,6 +195,14 @@ public class ApkBuilderTask extends Task {
throw new BuildException("missing attribute 'apkFilepath'");
}
+ if (mResourceFile == null) {
+ throw new BuildException("missing attribute 'resourcefile'");
+ }
+
+ if (mOutFolder == null) {
+ throw new BuildException("missing attribute 'outfolder'");
+ }
+
// check dexPath is only one file.
File dexFile = null;
if (mHasCode) {