From 5a8d1bee89af690ea9383252e7b509fa7a06665d Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Wed, 25 Apr 2018 22:57:34 +0900 Subject: Add prebuilt_etc_xml prebuilt_etc_xml installs an xml file to /etc[/] and validates the xml file against the given DTD file before installing it. This change also includes some fixes for prebuilt_etc which is the super module of prebuilt_etc_xml: 1) The module is changed to arch-specific module as the prebuilts are only for devices (installed under the etc dir), but not for hosts. 2) Dependency to android.Prebuilt is removed because android.Prebuilt is intended to be used for the case when a module can exist as prebuilts, source or both. These prebuilt_etc_* modules are prebuilt only. 3) srcs property which accepts a list of source files is changed to src that only accepts single source file, which makes more sense for prebuilts. Bug: 65686190 Test: m -j (xml_test.go) Change-Id: I40484f3f6615b99f6b8d43176db0c40c5bfd838e --- java/java_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/java_test.go') diff --git a/java/java_test.go b/java/java_test.go index de514e048..ea524962f 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1040,7 +1040,7 @@ func TestJavaSdkLibrary(t *testing.T) { ctx.ModuleForTests("foo"+sdkDocsSuffix, "android_common") ctx.ModuleForTests("foo"+sdkDocsSuffix+sdkSystemApiSuffix, "android_common") ctx.ModuleForTests("foo"+sdkImplLibrarySuffix, "android_common") - ctx.ModuleForTests("foo"+sdkXmlFileSuffix, "") + ctx.ModuleForTests("foo"+sdkXmlFileSuffix, "android_common") bazJavac := ctx.ModuleForTests("baz", "android_common").Rule("javac") // tests if baz is actually linked to the stubs lib -- cgit v1.2.3-59-g8ed1b