Home
last modified time | relevance | path

Searched refs:newFile (Results 1 – 3 of 3) sorted by relevance

/build/soong/bp2build/
Dconversion.go23 files = append(files, newFile("cc_toolchain", "BUILD", "")) // Creates a //cc_toolchain package.
24 files = append(files, newFile("cc_toolchain", "constants.bzl", config.BazelCcToolchainVars()))
38 files = append(files, newFile("", "WORKSPACE", ""))
41 files = append(files, newFile("", GeneratedBuildFileName, ""))
43 files = append(files, newFile(bazelRulesSubDir, GeneratedBuildFileName, ""))
46 files = append(files, newFile(bazelRulesSubDir, "providers.bzl", providersBzl))
49 files = append(files, newFile(bazelRulesSubDir, bzlFileName+".bzl", ruleShim.content))
51 …files = append(files, newFile(bazelRulesSubDir, "soong_module.bzl", generateSoongModuleBzl(ruleShi…
89 files = append(files, newFile(dir, GeneratedBuildFileName, content))
94 func newFile(dir, basename, content string) BazelFile { func
/build/soong/ui/build/
Dcleanbuild.go208 func cleanOldFiles(ctx Context, basePath, newFile string) {
209 newFile = filepath.Join(basePath, newFile)
210 oldFile := newFile + ".previous"
212 if _, err := os.Stat(newFile); err != nil {
213 ctx.Fatalf("Expected %q to be readable", newFile)
217 if err := os.Rename(newFile, oldFile); err != nil {
218 ctx.Fatalf("Failed to rename file list (%q->%q): %v", newFile, oldFile, err)
224 if data, err := ioutil.ReadFile(newFile); err == nil {
227 ctx.Fatalf("Failed to read list of installable files (%q): %v", newFile, err)
288 os.Rename(newFile, oldFile)
/build/soong/finder/fs/
Dfs.go711 parentDir.files[baseName] = m.newFile()
728 func (m *MockFs) newFile() *mockFile { func
729 newFile := &mockFile{}
730 newFile.inodeNumber = m.newInodeNumber()
731 newFile.modTime = m.Clock.Time()
732 newFile.permTime = newFile.modTime
733 return newFile