Home
last modified time | relevance | path

Searched refs:excludes (Results 1 – 25 of 28) sorted by relevance

12

/build/blueprint/
Dglob.go26 func verifyGlob(key globKey, pattern string, excludes []string, g pathtools.GlobResult) {
30 if len(excludes) != len(g.Excludes) {
31 panic(fmt.Errorf("Mismatched excludes %v and %v for glob key %q", excludes, g.Excludes, key))
34 for i := range excludes {
35 if g.Excludes[i] != excludes[i] {
36 panic(fmt.Errorf("Mismatched excludes %v and %v for glob key %q", excludes, g.Excludes, key))
41 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
44 excludes = slices.Clone(excludes)
45 sort.Strings(excludes)
47 key := globToKey(pattern, excludes)
[all …]
Dsingleton_ctx.go155 GlobWithDeps(pattern string, excludes []string) ([]string, error)
373 excludes []string) ([]string, error) {
374 return s.context.glob(pattern, excludes)
Dpackage_ctx.go326 GlobWithDeps(globPattern string, excludes []string) ([]string, error)
334 excludes []string) ([]string, error) {
335 return v.context.glob(pattern, excludes)
/build/blueprint/pathtools/
Dglob_test.go30 excludes []string member
231 excludes: []string{"d.ext"},
237 excludes: []string{"a/b"},
243 excludes: []string{"a/b", "c/c"},
249 excludes: []string{"c/*", "*/a"},
255 excludes: []string{"*/*"},
263 excludes: []string{filepath.Join(pwd, "testdata/glob/c/*/f.ext")},
276 excludes: []string{filepath.Join(pwd, "testdata/glob/c/f/*.ext")},
291 excludes: []string{"**/*.ext"},
297 excludes: []string{"**/b"},
[all …]
Dglob.go86 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error) {
87 return startGlob(OsFs, pattern, excludes, follow)
90 func startGlob(fs FileSystem, pattern string, excludes []string,
103 matches, err = filterExcludes(matches, excludes)
143 Excludes: excludes,
255 func filterExcludes(matches []string, excludes []string) ([]string, error) {
256 if len(excludes) == 0 {
263 for _, e := range excludes {
Dfs.go98 Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error)
233 func (fs *osFs) Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, e…
234 return startGlob(fs, pattern, excludes, follow)
389 func (m *mockFs) Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, …
390 return startGlob(m, pattern, excludes, follow)
/build/soong/android/
Dearly_module_context.go86 GlobWithDeps(pattern string, excludes []string) ([]string, error)
88 Glob(globPattern string, excludes []string) Paths
89 GlobFiles(globPattern string, excludes []string) Paths
110 func (e *earlyModuleContext) Glob(globPattern string, excludes []string) Paths {
111 return Glob(e, globPattern, excludes)
114 func (e *earlyModuleContext) GlobFiles(globPattern string, excludes []string) Paths {
115 return GlobFiles(e, globPattern, excludes)
Ddefs.go125 func GlobToListFileRule(ctx ModuleContext, pattern string, excludes []string, file WritablePath) {
126 bootstrap.GlobFile(ctx.blueprintModuleContext(), pattern, excludes, file.String())
Dpaths.go42 GlobWithDeps(globPattern string, excludes []string) ([]string, error)
70 func Glob(ctx EarlyModulePathContext, globPattern string, excludes []string) Paths {
71 ret, err := ctx.GlobWithDeps(globPattern, excludes)
80 func GlobFiles(ctx EarlyModulePathContext, globPattern string, excludes []string) Paths {
81 ret, err := ctx.GlobWithDeps(globPattern, excludes)
502 func PathsForModuleSrcExcludes(ctx ModuleMissingDepsPathContext, paths, excludes []string) Paths {
506 ExcludePaths: excludes,
627 func PathsAndMissingDepsForModuleSrcExcludes(ctx ModuleMissingDepsPathContext, paths, excludes []st…
631 ExcludePaths: excludes,
Dmodule_context.go97 ExpandSources(srcFiles, excludes []string) Paths
736 func (m *moduleContext) ExpandSources(srcFiles, excludes []string) Paths {
737 return PathsForModuleSrcExcludes(m, srcFiles, excludes)
/build/soong/java/
Djacoco_test.go71 includes, excludes []string
92 excludes: []string{"package/Class.class"},
99 got := jacocoFiltersToZipCommand(testCase.includes, testCase.excludes)
Djacoco.go107excludes, err := jacocoFiltersToSpecs(append(j.properties.Jacoco.Exclude_filter, config.DefaultJac…
112 return jacocoFiltersToZipCommand(includes, excludes)
115 func jacocoFiltersToZipCommand(includes, excludes []string) string {
117 if len(excludes) > 0 {
118 specs += android.JoinWithPrefix(excludes, "-x ") + " "
/build/blueprint/bootstrap/bpglob/
Dbpglob.go46 excludes []string member
73 glob.excludes = append(glob.excludes, s)
127 result, err := pathtools.Glob(glob.pattern, glob.excludes, pathtools.FollowSymlinks)
/build/soong/cmd/zip2zip/
Dzip2zip_test.go33 excludes []string
218 excludes: []string{"a/a"},
232 excludes: []string{"a/a"},
246 excludes: []string{"a/*"},
258 excludes: []string{"a/*"},
271 excludes: []string{"a/*"},
441 testCase.args, testCase.excludes, testCase.includes, testCase.uncompresses)
Dzip2zip.go43 excludes multiFlag var
49 flag.Var(&excludes, "x", "exclude a filespec from the output")
101 flag.Args(), excludes, includes, uncompress); err != nil {
114 args []string, excludes, includes multiFlag, uncompresses []string) error { argument
179 if exclude, err := excludes.Match(match.File.Name); err != nil {
/build/make/tools/atree/
Dfiles.h43 vector<string>* excludes);
47 int list_dir(const FileRecord& rec, const vector<string>& excludes,
Dfiles.cpp181 vector<string>* excludes) in read_list_file() argument
254 excludes->push_back(string(p)); in read_list_file()
412 matches_excludes(const char* file, const vector<string>& excludes) in matches_excludes() argument
414 for (vector<string>::const_iterator it=excludes.begin(); in matches_excludes()
415 it!=excludes.end(); it++) { in matches_excludes()
425 const vector<string>& excludes, in list_dir() argument
444 if (matches_excludes(ent->d_name, excludes)) { in list_dir()
457 list_dir(*it, rec, excludes, more); in list_dir()
464 list_dir(const FileRecord& rec, const vector<string>& excludes, in list_dir() argument
467 return list_dir("", rec, excludes, files); in list_dir()
Datree.cpp207 vector<string> excludes; in main() local
214 err = read_list_file(*it, g_variables, &files, &excludes); in main()
231 err |= list_dir(*it, excludes, &more); in main()
/build/make/core/
Dchecktree5 excludes = [r'.*?/\.obj.*?', variable
14 excludes_compiled = map(re.compile, excludes)
/build/blueprint/bootstrap/
Dglob.go76 func GlobFile(ctx GlobFileContext, pattern string, excludes []string, fileListFile string) {
78 if len(excludes) > 0 {
79 args += " " + joinWithPrefixAndQuote(excludes, "-e ")
/build/soong/cmd/go2bp/
Dgo2bp.go87 var excludes = make(Exclude) var
309 flag.Var(&excludes, "exclude", "Exclude go package")
375 if excludes[pkgName] {
393 if !pkg.ExportToAndroid || excludes[pkg.ImportPath] {
/build/soong/cmd/pom2mk/
Dpom2mk.go102 var excludes = make(Exclude) var
388 flag.Var(&excludes, "exclude", "Exclude module")
473 if excludes[key] {
/build/soong/bazel/
Dproperties.go1048 func (p partitionToLabelList) excludes(partition string, excludes []Label) { func
1052 p[partition].Excludes = excludes
1108 partitionToLabels.excludes(partition, value.Excludes)
Dproperties_test.go325 func makeLabelList(includes, excludes []string) LabelList {
328 Excludes: makeLabels(excludes...),
/build/soong/cmd/pom2bp/
Dpom2bp.go110 var excludes = make(Exclude) var
856 flag.Var(&excludes, "exclude", "Exclude module")
949 if excludes[key] {

12