summaryrefslogtreecommitdiff
path: root/tools/warn/java_warn_patterns.py
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-02-08 10:55:05 -0800
committer Colin Cross <ccross@android.com> 2021-02-08 10:55:05 -0800
commita1271eb34376d02c613de8186f741d97378cace4 (patch)
treecbda7dfe41bbc28fa8133d38589486ee82bc8490 /tools/warn/java_warn_patterns.py
parentbff5273dd0e5bb231f38c140edec135cbd513acd (diff)
Turn missing jarjar output files into errors
Jarjar doesn't exit with a nonzero return code when there is a syntax error in a rules file and doesn't write the output file. Without a nonzero return code ninja prints a warning but continues, which leads to stale results on incremental builds where the output file already exists, or delayed errors on clean builds whre the output file didn't exist. Delete the output file before running jarjar, and then check if it exists after running jarjar. Fixes: 119516143 Test: m out/target/common/obj/JAVA_LIBRARIES/noto-emoji-compat-java_intermediates/classes-jarjar.jar Change-Id: Ib99167403948ee11f039dd4d2d7e63052bb92136
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions