OSDN Git Service

Add targets for building individual modules using javac
authorPaul Duffin <paulduffin@google.com>
Thu, 15 Sep 2016 13:34:42 +0000 (14:34 +0100)
committerPaul Duffin <paulduffin@google.com>
Mon, 19 Sep 2016 12:38:51 +0000 (13:38 +0100)
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
core/java.mk

index 0a7dd8a..cc26d7c 100644 (file)
@@ -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)),)
index e505ffb..606b474 100644 (file)
@@ -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)),)