else:
error += line
+ # Also clean jni
+ print "Cleaning jni dirs..."
+ for baddir in [
+ 'libs/armeabi-v7a', 'libs/armeabi',
+ 'libs/mips', 'libs/x86']:
+ badpath = os.path.join(build_dir, baddir)
+ if os.path.exists(badpath):
+ print "Removing '%s'" % badpath
+ shutil.rmtree(badpath)
+
# Scan before building...
print "Scanning source for common problems..."
buildprobs = common.scan_source(build_dir, root_dir, thisbuild)
p.communicate()
if p.returncode != 0:
raise BuildException("Error running init command for %s:%s" %
- (app['id'], thisbuild['version']), output, error)
+ (app['id'], build['version']), output, error)
# Generate (or update) the ant build file, build.xml...
updatemode = build.get('update', '.')
p.communicate()
if p.returncode != 0:
raise BuildException("Error running prebuild command for %s:%s" %
- (app['id'], thisbuild['version']), output, error)
+ (app['id'], build['version']), output, error)
print "Applying generic clean-ups..."
if build.get('anal-tics', 'no') == 'yes':