aboutsummaryrefslogtreecommitdiffstats
path: root/java/resources.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-06-17 15:09:06 -0700
committerColin Cross <ccross@android.com>2015-06-17 15:36:48 -0700
commit8f101b45fc876b63f2a556c5b19801dbc8ac5fdc (patch)
tree2be41986a7a55669b2a6632f84685c6a46e343a8 /java/resources.go
parent1f8c52be73d31f3347bcf7f8fb29b49e87b3864e (diff)
downloadbuild_soong-8f101b45fc876b63f2a556c5b19801dbc8ac5fdc.tar.gz
build_soong-8f101b45fc876b63f2a556c5b19801dbc8ac5fdc.tar.bz2
build_soong-8f101b45fc876b63f2a556c5b19801dbc8ac5fdc.zip
Allow common.Glob to be called by singletons
Make common.Glob take an interface that is the intersection of blueprint.ModuleContext and blueprint.SingletonContext used by Glob and GlobRule, allowing it to be called on either. Also move ExpandSources and Glob into AndroidModuleContext. Change-Id: I8d1a3160c5dd201033afdb37210e82d8065b137d
Diffstat (limited to 'java/resources.go')
-rw-r--r--java/resources.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/resources.go b/java/resources.go
index 7aa909ee..f9d7a05b 100644
--- a/java/resources.go
+++ b/java/resources.go
@@ -47,7 +47,7 @@ func ResourceDirsToJarSpecs(ctx common.AndroidModuleContext, resourceDirs []stri
continue
}
resourceDir := filepath.Join(common.ModuleSrcDir(ctx), resourceDir)
- dirs := common.Glob(ctx, resourceDir, nil)
+ dirs := ctx.Glob(resourceDir, nil)
for _, dir := range dirs {
fileListFile := filepath.Join(common.ModuleOutDir(ctx), "res", dir, "resources.list")
depFile := fileListFile + ".d"