Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79b75894 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Support empty jacoco-report-classes.jar" am: 62eee30f am: d9bbafdb

Change-Id: Iead4557fcd6ba6f1b9495d0787683579e4ab9e9b
parents 49bd5e67 d9bbafdb
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -4765,13 +4765,8 @@ ifeq (true,$(EMMA_INSTRUMENT))
JACOCO_REPORT_CLASSES_ALL := $(PRODUCT_OUT)/jacoco-report-classes-all.jar
$(JACOCO_REPORT_CLASSES_ALL) :
	@echo "Collecting uninstrumented classes"
	$(hide) find $(TARGET_COMMON_OUT_ROOT) $(HOST_COMMON_OUT_ROOT) -name "jacoco-report-classes.jar" | \
	    zip -@ -0 -q -X $@
# Meaning of these options:
# -@ scan stdin for file paths to add to the zip
# -0 don't do any compression
# -q supress most output
# -X skip storing extended file attributes
	find $(TARGET_COMMON_OUT_ROOT) $(HOST_COMMON_OUT_ROOT) -name "jacoco-report-classes.jar" 2>/dev/null | sort > $@.list
	$(SOONG_ZIP) -o $@ -L 0 -C $(OUT_DIR) -P out -l $@.list

endif # EMMA_INSTRUMENT=true