aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks
diff options
context:
space:
mode:
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) {