platform_build/core
Colin Cross a1271eb343 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
2021-02-08 10:55:05 -08:00
..
clang Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
combo Add armv8-a-branchprot arch variant 2021-01-28 17:10:24 +01:00
tasks Add unit_test option to module-info.json 2021-01-08 17:36:56 +08:00
LINUX_KERNEL_COPYING
Makefile Merge "Adding repack_bootimg into otatools.zip" 2021-02-06 08:00:55 +00:00
OWNERS Refactor OWNERS files in platform/build/make. 2020-10-08 16:14:44 -07:00
WINPTHREADS_COPYING
aapt2.mk Allow passing --legacy in LOCAL_AAPT_FLAGS 2019-06-22 13:03:09 -07:00
aapt_flags.mk
allowed_ndk_types.mk
android_manifest.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
android_soong_config_vars.mk Add logic to ensure the ART APEXes are built from source in coverage 2021-02-03 23:16:01 +00:00
app_certificate_validate.mk Use inclusive language in build/make 2020-06-12 21:10:55 -07:00
app_prebuilt_internal.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
artifact_path_requirements.mk Add a "relaxed" mode for require-artifacts-in-path 2020-12-09 16:30:43 +00:00
autogen_test_config.mk AutoGen: Support NativeTest with vendor namespace. 2020-09-01 10:33:47 +08:00
base_rules.mk Install init_rc for recovery modules correctly. 2021-02-02 17:04:53 -08:00
binary.mk Remove implicit include path for jni.h 2020-09-24 14:43:26 +01:00
board_config.mk Add support for packing multiple vendor ramdisks in vendor_boot 2020-12-17 11:07:04 +08:00
build-system.html Document unbundle build behavior 2020-08-06 18:25:51 +09:00
build_id.mk Version bump to RQ1A.210205.004 [core/build_id.mk] 2020-12-17 01:19:16 +00:00
build_rro_package.mk Do not remove RRO resources 2020-01-14 17:00:13 -08:00
cc_prebuilt_internal.mk Dedup lists of NDK libraries from Soong. 2020-06-30 12:46:41 -07:00
ccache.mk
check_elf_file.mk Exclude system shared libs from fix suggestion 2020-09-22 18:55:11 +08:00
checktree
cleanbuild.mk
cleanspec.mk
clear_vars.mk Merge <uses-library> dependency configs into dexpreopt.config files. 2021-01-28 14:59:14 +00:00
config.mk Enable prebuilt hiddenapi CSV files. 2021-01-16 22:07:40 +00:00
config_sanitizers.mk Support memtag_heap sanitizer type in make. 2021-01-20 22:27:49 +00:00
configure_module_stem.mk
copy_headers.mk Stop removing valid copy headers 2019-12-26 16:52:34 -08:00
cxx_stl_setup.mk Switch platform EH unwinder to prebuilt LLVM libunwind 2021-01-13 19:36:53 -08:00
definitions.mk Turn missing jarjar output files into errors 2021-02-08 10:55:05 -08:00
deprecation.mk Obsolete unused module types 2020-04-18 21:00:18 -07:00
device.mk
dex_preopt.mk Auto-generate dexpreopt boot image module 2020-07-14 15:49:08 +08:00
dex_preopt_config.mk Merge "Remove unused variables." 2021-01-20 18:13:20 +00:00
dex_preopt_config_merger.py Don't patch build path to DEX jar in dex_preopt_config_merger.py. 2021-02-04 09:55:57 +00:00
dex_preopt_libart.mk Auto-generate dexpreopt boot image module 2020-07-14 15:49:08 +08:00
dex_preopt_odex_install.mk Quick and dirty filtering of present LOCAL_OPTIONAL_USES_LIBRARIES. 2021-02-03 15:05:42 +00:00
distdir.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
dumpvar.mk Make dump-many-vars work for large variables 2020-11-07 01:38:20 +00:00
dynamic_binary.mk Give strip depfile a unique name, properly include it 2020-01-27 22:06:21 +00:00
empty_test_config.xml
envsetup.mk Merge "Revert "Add modules partition."" 2020-09-16 22:45:54 +00:00
executable.mk Remove TARGET_PREFER_32_BIT. 2020-06-08 16:36:52 -07:00
executable_internal.mk Use the soong-built NDK CRT objects. 2020-07-17 15:23:57 -07:00
executable_prefer_symlink.mk Remove TARGET_PREFER_32_BIT. 2020-06-08 16:36:52 -07:00
filter_symbols.sh
force_aapt2.mk Don't set LOCAL_SDK_RES_VERSION to current if LOCAL_SDK_VERSION is core_current 2019-04-18 11:14:58 -07:00
fuzz_test.mk Fix to avoid breaking aosp_x86 build 2019-09-20 12:43:02 -07:00
generate_enforce_rro.mk Don't sign auto-generated RROs with platform cert 2019-05-01 16:42:56 +01:00
goma.mk Disable goma for javac actions in Make 2020-03-05 20:46:47 +00:00
header_library.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
header_library_internal.mk
host_dalvik_java_library.mk Turn missing jarjar output files into errors 2021-02-08 10:55:05 -08:00
host_dalvik_static_java_library.mk
host_executable.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
host_executable_internal.mk Add dependencies on the toolchain (clang, etc) 2019-06-12 21:34:52 +00:00
host_java_library.mk Turn missing jarjar output files into errors 2021-02-08 10:55:05 -08:00
host_java_library_common.mk Remove host- prefix from protobuf libraries 2018-10-26 23:55:49 -07:00
host_prebuilt.mk
host_shared_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
host_shared_library_internal.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
host_static_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
host_static_library_internal.mk
install_jni_libs.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
install_jni_libs_internal.mk Mark jni libs as REQUIRED by their app 2020-06-16 16:13:03 +08:00
instrumentation_test_config_template.xml Update auto-gen test config template with PARAMETERIZED_STRINGS 2020-05-18 09:58:18 +08:00
jacoco.mk Use unzip -DD 2020-07-13 14:26:25 -07:00
java.mk Turn missing jarjar output files into errors 2021-02-08 10:55:05 -08:00
java_common.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
java_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
java_host_unit_test_config_template.xml Add a template for java host unit tests 2020-11-19 09:42:41 -08:00
java_library.mk Remove support for stripping dex. 2019-10-21 09:36:45 +01:00
java_prebuilt_internal.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
java_renderscript.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
java_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
jetifier.mk
link_type.mk More performance improvements 2020-06-10 17:18:13 -07:00
local_current_sdk.mk Introduce BOARD_CURRENT_API_LEVEL_FOR_VENDOR_MODULES 2020-08-24 23:16:19 +09:00
local_systemsdk.mk Exempt RRO from the restriction on API level 2020-04-28 10:25:41 +09:00
local_vndk.mk Restore "Linktype check for native:product" 2020-01-22 00:16:25 +00:00
main.mk Merge "Moving $OUT/vendor-ramdisk-debug.cpio.lz4 to intermediate dir" 2021-01-24 14:53:43 +00:00
misc_prebuilt_internal.mk Add RENDERSCRIPT_BITCODE to misc_prebuilt_internal whitelist. 2019-11-11 15:21:06 -08:00
module_arch_supported.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
multi_prebuilt.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
multilib.mk
native_benchmark_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
native_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
native_test.mk
native_test_config_template.xml AutoGen: Support NativeTest with vendor namespace. 2020-09-01 10:33:47 +08:00
ninja_config.mk Remove build tasks for vts10 2020-10-05 10:17:21 -07:00
node_fns.mk Add support for single-value product variables 2019-05-06 16:17:20 +01:00
notice_files.mk Revert^2 "Rough-in license metadata support to make." 2021-01-06 20:52:43 -08:00
pack_dyn_relocs_setup.mk Explicitly add lld's relr relocation flags for Android Pie and above 2019-07-30 22:36:29 -07:00
package.mk Remove TARGET_PREFER_32_BIT. 2020-06-08 16:36:52 -07:00
package_internal.mk Add dependencies on java resources when packaging APK without classes 2021-01-12 15:08:08 -08:00
pathmap.mk Fix up recovery_text_res 2020-05-27 19:37:03 -07:00
phony_package.mk
prebuilt.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
prebuilt_internal.mk Add RENDERSCRIPT_BITCODE to misc prebuilt whitelist. 2019-11-11 09:30:38 -08:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk Ensure current product use PRODUCT_* vars directly 2019-10-30 14:29:42 +00:00
product.mk Emit virtual_ab_compression prop to dynamic_parttiion_info.txt 2021-01-19 16:11:32 -05:00
product_config.mk Merge "Move jacocoagent installation to base_system" 2020-12-17 00:25:50 +00:00
proguard.flags Understand the support library/androidx @Keep annotations 2019-03-26 23:44:01 +00:00
proguard.jacoco.flags
proguard_basic_keeps.flags Keep proguard fields for lite runtime 2019-09-05 14:42:14 -07:00
project_definitions.mk
python_binary_host_test_config_template.xml ATest: Add test config template for python. 2018-11-20 15:31:44 +08:00
rbe.mk Revert "Remove env-var-allowlist" 2020-10-20 05:52:49 +00:00
robolectric_test_config_template.xml Changes Robolectric test suite tag to its own value to enable filtering these in ATP. 2020-10-28 01:09:18 +00:00
root.mk
rust_device_test_config_template.xml Add rust_device_test_config_template.xml 2019-12-02 17:44:47 +00:00
rust_host_test_config_template.xml Add rust_host_test_config_template.xml 2019-11-14 09:57:13 -08:00
sdk_check.mk Use inclusive language in build/make 2020-06-12 21:10:55 -07:00
sdk_font.mk Move font xml files to "standard" directory 2020-01-29 18:26:32 +00:00
shared_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
shared_library_internal.mk Use the soong-built NDK CRT objects. 2020-07-17 15:23:57 -07:00
shell_test_config_template.xml Add test config template for sh_test. 2020-06-11 22:57:48 +00:00
soong_android_app_set.mk Update language to comply with inclusive guidance 2020-07-28 15:59:38 -07:00
soong_app_prebuilt.mk Merged and dist lists of unused methods from R8 2020-08-17 19:31:22 +00:00
soong_cc_prebuilt.mk Make the build fail when the executable prebuilt target check fails. 2020-10-07 21:04:51 +01:00
soong_config.mk Merge "Enable prebuilt hiddenapi CSV files." 2021-01-20 17:43:48 +00:00
soong_droiddoc_prebuilt.mk Remove apidiff task and droiddoc jdiff support 2020-10-08 19:06:21 +01:00
soong_java_prebuilt.mk Merge <uses-library> dependency configs into dexpreopt.config files. 2021-01-28 14:59:14 +00:00
soong_rust_prebuilt.mk Rust: Collect gnco files with CLANG_COVERAGE too. 2020-11-16 15:32:19 -05:00
static_java_library.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
static_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
static_library_internal.mk Package coverage files as a zip. 2020-02-03 19:00:36 +00:00
suite_host_config.mk Generalize vts config module for other Suites 2019-10-18 18:28:23 +00:00
support_libraries.mk
sysprop.mk Merge "Make ro.product.cpu.abilist.* to be fetched dynamically" 2021-01-14 18:34:22 +00:00
target_test_internal.mk Eliminate ENABLE_DEFAULT_TEST_LOCATION as it is always true 2019-03-25 13:26:03 -07:00
use_lld_setup.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
verify_uses_libraries.sh
version_defaults.mk Merge RQ1A.210205.004 to aosp-master - DO NOT MERGE 2021-02-03 17:01:38 -08:00