android_build_soong/java
Colin Cross d97cf63cdf 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/APPS/TeleService_intermediates/classes.jar
Change-Id: I7e9f7ff34de565a986ab0dc6e375f606c91c3846
2021-02-08 10:14:04 -08:00
..
config Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-29 01:17:45 -07:00
aapt2.go Improve comments in java/aapt2.go 2020-11-30 14:16:02 -08:00
aar.go Merge changes I6a512209,I56437f26 2020-12-22 10:14:41 +00:00
Android.bp Add boot_image module type 2021-01-26 13:00:07 +00:00
android_manifest.go Rename fields and methods to reflect class loader context changes. 2020-11-16 14:59:07 +00:00
android_resources.go Add dependency to list of asset files 2020-12-11 19:54:16 +00:00
androidmk.go Write module dexpreopt.config for Make. 2021-01-28 06:29:13 +00:00
androidmk_test.go Supply LOCAL_SOONG_DEX_JAR for java_import with compile_dex. 2021-01-19 18:15:16 +00:00
app.go Write module dexpreopt.config for Make. 2021-01-28 06:29:13 +00:00
app_builder.go Soong: remove output file before running signapk 2020-11-25 23:07:23 +01:00
app_import.go Write module dexpreopt.config for Make. 2021-01-28 06:29:13 +00:00
app_import_test.go Enforce <uses-library> checks for android_app and android_app_import. 2021-01-05 12:04:17 +00:00
app_set.go Break up app.go. 2020-12-21 12:31:51 -08:00
app_set_test.go Break up app.go. 2020-12-21 12:31:51 -08:00
app_test.go Merge "Break up app.go." 2020-12-28 17:50:44 +00:00
boot_image.go Fix some minor issues with boot_image 2021-01-30 12:57:26 +00:00
boot_image_test.go Add boot_image module type 2021-01-26 13:00:07 +00:00
boot_jars.go Fix boot jar handling when both source and prebuilt APEXes and modules 2021-01-28 20:09:24 +00:00
builder.go Turn missing jarjar output files into errors 2021-02-08 10:14:04 -08:00
device_host_converter.go Remove restriction on exported plugins that generate APIs 2020-11-23 11:42:26 -08:00
device_host_converter_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
dex.go Switch hiddenapi to use OutputPath instead of ModuleOutPath 2021-02-02 14:42:05 +00:00
dexpreopt.go Don't write nonexistent DEX file paths to dexpreopt.config files. 2021-02-04 12:14:51 +00:00
dexpreopt_bootjars.go Improve module filtering in hiddenapi stubFlagsRule() 2021-02-05 13:33:25 +00:00
dexpreopt_bootjars_test.go Add java.RegisterRequiredBuildComponentsForTest function 2021-01-21 11:47:32 +00:00
dexpreopt_config.go Retry: Make ConfiguredJarList immutable 2020-10-27 17:37:20 +00:00
dexpreopt_test.go Write module dexpreopt.config for Make. 2021-01-28 06:29:13 +00:00
droiddoc.go Remove Ignore_missing_latest_api 2020-12-31 10:44:38 +00:00
gen.go Use soong_zip -srcjar for proto and aidl srcjars 2020-12-23 17:13:16 -08:00
genrule.go
hiddenapi.go Switch hiddenapi to use OutputPath instead of ModuleOutPath 2021-02-02 14:42:05 +00:00
hiddenapi_singleton.go Add test for hiddenAPI index file generation 2021-02-07 10:58:24 +00:00
hiddenapi_singleton_test.go Add test for hiddenAPI index file generation 2021-02-07 10:58:24 +00:00
jacoco.go Use a default exclude filter for JaCoCo in Soong. 2020-07-08 19:29:10 +00:00
jacoco_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
java.go Merge changes I9e94662d,I4b4e0dc8 2021-02-07 10:52:01 +00:00
java_resources.go
java_test.go Make dexpreopt tools available for all java tests 2021-01-25 19:15:19 +00:00
jdeps.go Add soong cc and java deps to general-tests dist 2020-07-07 22:41:31 +00:00
jdeps_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
kotlin.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
kotlin_test.go Support extra checks for ErrorProne in a dedicated property 2020-11-19 14:20:12 -08:00
legacy_core_platform_api_usage.go Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-29 01:17:45 -07:00
lint.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
lint_defaults.txt Add support for running Android lint on java and android modules. 2020-06-18 11:01:47 -07:00
OWNERS
platform_compat_config.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
plugin.go Consolidate adding common java properties 2020-06-18 11:01:47 -07:00
plugin_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
prebuilt_apis.go Fix prebuilt_apis creating of "latest" incompatibilities 2021-01-26 18:08:19 +00:00
proto.go bp2build: convert paths/module refs to Bazel label 2021-02-04 13:45:56 -05:00
robolectric.go Remove AndroidMkExtraFootersFunc entries param. 2020-12-07 10:23:54 -08:00
rro.go go/Android.bp: Clarify sdk_version documentation. 2021-01-28 21:55:37 +00:00
rro_test.go Break up app.go. 2020-12-21 12:31:51 -08:00
sdk.go Remove unnecessary snake case variables. 2020-12-22 12:38:35 -08:00
sdk_library.go Add a better error message for missing api files 2021-01-20 19:21:16 +00:00
sdk_library_external.go Add java sdk library enforcement flag 2020-11-24 17:56:15 +09:00
sdk_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
support_libraries.go
sysprop.go Add comments about sysprop_library 2020-11-24 14:13:31 +09:00
system_modules.go Revert^2 "Export soong license data to make." 2021-01-06 20:49:11 -08:00
testing.go Fix some minor issues with boot_image 2021-01-30 12:57:26 +00:00
tradefed.go