示例#1
0
 private void handleFile(string[] chunks)
 {
     _currentFile = chunks[1];
     var file = new ProjectFile(_currentFile, _currentProject);
     var args = getArguments(chunks, 2);
     if (args.Contains("filesearch"))
         file.SetFileSearch();
     _builder.Add(file);
 }
示例#2
0
 private bool filter(ProjectFile reference, Query query)
 {
     if (query == null)
         return true;
     if (query.Project != null && !wildcardmatch(reference.Project, query.Project))
         return false;
     if (query.File != null && !wildcardmatch(reference.File, query.File))
         return false;
     return true;
 }
示例#3
0
 public void Add(ProjectFile file)
 {
     lock (_files) {
         var existing = _files.FirstOrDefault(x => x.File == file.File);
         if (existing == null) {
             _files.Add(file);
             return;
         }
         existing.Update(file.Project, file.FileSearch);
     }
 }
示例#4
0
 public void Add(ProjectFile file)
 {
     lock (_files)
         _files.Add(file);
 }
示例#5
0
 public void Add(ProjectFile file)
 {
 }
示例#6
0
 public string Format(ProjectFile file)
 {
     return string.Format("file|{0}",
         file.File);
 }
 public void Add(ProjectFile file)
 {
     Files.Add(file);
 }