From 1664b90d6705acf40aced06cf250fe5a6527e6e8 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 16 May 2017 11:05:29 -0700 Subject: [PATCH] Normalize timestamps in host java libraries Remove timestamps from jar files in host java libraries to get consistent results between builds to help with build artifact caching. Bug: 38215808 Test: sha1sum desugar.jar && touch Desugar.java && m -j desugar && sha1sum desugar.jar Change-Id: I1ecac9b2b80f673937086686540ab0736259df1b --- core/host_java_library.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/host_java_library.mk b/core/host_java_library.mk index 35dece4d0..d30c90d94 100644 --- a/core/host_java_library.mk +++ b/core/host_java_library.mk @@ -76,9 +76,11 @@ $(full_classes_compiled_jar): \ $(proto_java_sources_file_stamp) \ $(annotation_processor_deps) \ $(NORMALIZE_PATH) \ + $(ZIPTIME) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) \ | $(SOONG_JAVAC_WRAPPER) $(transform-host-java-to-package) + $(remove-timestamps-from-package) javac-check : $(full_classes_compiled_jar) javac-check-$(LOCAL_MODULE) : $(full_classes_compiled_jar)