aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-05-08 02:41:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-08 02:41:09 +0000
commit291bcf4f37c3fa2a8d1750b58d1492d96b5f03eb (patch)
treeb7824ca22cb0f741a85c36ddacaed08eb6cde948
parent5b99bc00a08603ca37af995d4b78555fcca95091 (diff)
parentd01ea714e2697238a3bf42012ad7397493502951 (diff)
downloadbuild-291bcf4f37c3fa2a8d1750b58d1492d96b5f03eb.tar.gz
Merge "Revert^2 "Remove obsolete java compilation artifacts"" into main
-rw-r--r--CleanSpec.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/CleanSpec.mk b/CleanSpec.mk
index dfc0cd0fff..19fc6399c0 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -779,6 +779,10 @@ $(call add-clean-step, rm -rf $(OUT_DIR)/bazel/output/execroot/__main__/bazel-ou
# Clear out rustc compiler intermediates after reverting rust compiler/linker split.
$(call add-clean-step, find $(OUT_DIR) -name "*.rsp.whole.a" -print0 | xargs -0 /bin/bash -c 'rm -f $$$${@}; rm -f $$$${@/.rsp.whole.a/.rsp.a}; rm -f $$$${@/.rsp.whole.a/.rsp}')
+# Remove obsolete java compilation artifacts
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/)
+$(call add-clean-step, find $(OUT_DIR) -type f -name "*.jar" -print0 | xargs -0 rm -f)
+
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************