From 8a49795df1ed87a4889f267dbd8d28c5832bb897 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 5 Mar 2019 22:25:09 -0800 Subject: 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 --- java/java_resources.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/java_resources.go') diff --git a/java/java_resources.go b/java/java_resources.go index 462296302..71611689a 100644 --- a/java/java_resources.go +++ b/java/java_resources.go @@ -46,7 +46,7 @@ func ResourceDirsToJarArgs(ctx android.ModuleContext, } } - excludeFiles = append(excludeFiles, ctx.ExpandSources(excludeResourceFiles, nil).Strings()...) + excludeFiles = append(excludeFiles, android.PathsForModuleSrc(ctx, excludeResourceFiles).Strings()...) excludeFiles = append(excludeFiles, resourceExcludes...) @@ -96,7 +96,7 @@ func SourceFilesToJarArgs(ctx android.ModuleContext, func resourceFilesToJarArgs(ctx android.ModuleContext, res, exclude []string) (args []string, deps android.Paths) { - files := ctx.ExpandSources(res, exclude) + files := android.PathsForModuleSrcExcludes(ctx, res, exclude) lastDir := "" for i, f := range files { -- cgit v1.2.3-59-g8ed1b