summaryrefslogtreecommitdiff
path: root/xml/xml.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-03-05 22:25:09 -0800
committerColin Cross <ccross@android.com>2019-03-20 19:36:13 +0000
commit8a49795df1ed87a4889f267dbd8d28c5832bb897 (patch)
treee769fe1ab955ab4420d1edf68355c2ff9a4b470e /xml/xml.go
parent07e51619a2752d6a36bd149c8938b5d7cae5baa7 (diff)
Replace ctx.ExpandSources with android.PathsForModuleSrc
Move the logic from ctx.ExpandSources into android.PathsForModuleSrc and ctx.ExpandSource into android.PathForModuleSrc, and deprecate them. When combined with the pathDepsMutator this will let all properties that take source paths also take filegroups or genrule outputs, as long as they are tagged with `android:"path"`. Test: All soong tests Change-Id: I01625e76b5da19240e9649bf26a014eeeafcab8f
Diffstat (limited to 'xml/xml.go')
-rw-r--r--xml/xml.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml/xml.go b/xml/xml.go
index d89327f51..7c670fb8f 100644
--- a/xml/xml.go
+++ b/xml/xml.go
@@ -79,7 +79,7 @@ func (p *prebuiltEtcXml) GenerateAndroidBuildActions(ctx android.ModuleContext)
p.PrebuiltEtc.GenerateAndroidBuildActions(ctx)
if p.properties.Schema != nil {
- schema := ctx.ExpandSource(proptools.String(p.properties.Schema), "schema")
+ schema := android.PathForModuleSrc(ctx, proptools.String(p.properties.Schema))
switch schema.Ext() {
case ".dtd":