From 32bd0adf9c5dcd1560d77bdb886c7acc78496657 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 15 Sep 2016 14:34:42 +0100 Subject: [PATCH] Add targets for building individual modules using javac This is needed in order to be able to run error prone (which is a plugin replacement for javac) on a subset of the java code. Bug: 31507496 Test: Build javac-check-core-tests and check the resulting JAR Change-Id: I5a556920572fcdad7b39d67e3f00fe0e0f1f8f46 --- core/host_java_library.mk | 1 + core/java.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/core/host_java_library.mk b/core/host_java_library.mk index 0a7dd8a65..cc26d7cc9 100644 --- a/core/host_java_library.mk +++ b/core/host_java_library.mk @@ -73,6 +73,7 @@ $(full_classes_compiled_jar): \ $(transform-host-java-to-package) javac-check : $(full_classes_compiled_jar) +javac-check-$(LOCAL_MODULE) : $(full_classes_compiled_jar) # Run jarjar if necessary, otherwise just copy the file. ifneq ($(strip $(LOCAL_JARJAR_RULES)),) diff --git a/core/java.mk b/core/java.mk index e505ffb41..606b474c1 100644 --- a/core/java.mk +++ b/core/java.mk @@ -416,6 +416,7 @@ $(full_classes_compiled_jar): \ $(transform-java-to-classes.jar) javac-check : $(full_classes_compiled_jar) +javac-check-$(LOCAL_MODULE) : $(full_classes_compiled_jar) # Run jarjar if necessary, otherwise just copy the file. ifneq ($(strip $(LOCAL_JARJAR_RULES)),) -- 2.11.0