The lack of dex file made the Ant package task throw an NPE.
Also some minor typo fix.
Change-Id: Ic617ee66017c402f211f5400baf5a00eb7e6cff5
inputPaths.add(resourceInputPath);
// dex file
- inputPaths.add(new InputPath(dexFile));
+ if (dexFile != null) {
+ inputPaths.add(new InputPath(dexFile));
+ }
// zip input files
List<File> zipFiles = new ArrayList<File>();
}
/**
- * Returns if it is a new build. If the built type is not input
+ * Returns if it is a new build. If the build type is not input
* from the XML, this always returns true.
* A build type is defined by having an empty previousBuildType.
*/
}
public InputPath(File file, Set<String> extensionsToCheck) {
+ if (file == null) {
+ throw new RuntimeException("File in InputPath(File) can't be null");
+ }
mFile = file;
mTouchedExtensions = extensionsToCheck;
}
-->
<!-- ******************************************************* -->
- <!-- *************** Overrideable Properties *************** -->
+ <!-- **************** Overridable Properties *************** -->
<!-- ******************************************************* -->
<!-- You can override these values in your build.xml or build.properties.