summaryrefslogtreecommitdiff
path: root/java/system_modules.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-01-10 17:30:36 +0000
committer Paul Duffin <paulduffin@google.com> 2020-01-15 11:17:57 +0000
commitcded5ecfc3e51052cd8353c8867f2bdcd0535756 (patch)
tree44f56dda1c593dc18493a3ab6d8eb176143aa3b1 /java/system_modules.go
parenta7b9f42587d844e2e3f5d528d7b13ac3bac24090 (diff)
Document java_system_modules
Bug: 142940300 Test: m nothing Change-Id: Ic658226088615dbeeef15f17dbb095a968e0742d
Diffstat (limited to 'java/system_modules.go')
-rw-r--r--java/system_modules.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/system_modules.go b/java/system_modules.go
index ed2fc1856..81e5cb462 100644
--- a/java/system_modules.go
+++ b/java/system_modules.go
@@ -92,6 +92,9 @@ func TransformJarsToSystemModules(ctx android.ModuleContext, jars android.Paths)
return outDir, outputs.Paths()
}
+// java_system_modules creates a system module from a set of java libraries that can
+// be referenced from the system_modules property. It must contain at a minimum the
+// java.base module which must include classes from java.lang amongst other java packages.
func SystemModulesFactory() android.Module {
module := &SystemModules{}
module.AddProperties(&module.properties)