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
diff --git a/java/java.go b/java/java.go
index d22f47a..9787d60 100644
--- a/java/java.go
+++ b/java/java.go
@@ -292,7 +292,7 @@
javacDeps = append(javacDeps, classpath...)
}
- srcFiles := common.ExpandSources(ctx, j.properties.Srcs)
+ srcFiles := ctx.ExpandSources(j.properties.Srcs)
srcFiles = j.genSources(ctx, srcFiles, flags)