Example #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);
 }
Example #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;
 }
Example #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);
     }
 }
Example #4
0
 public void Add(ProjectFile file)
 {
     lock (_files)
         _files.Add(file);
 }
Example #5
0
 public void Add(ProjectFile file)
 {
 }
Example #6
0
 public string Format(ProjectFile file)
 {
     return string.Format("file|{0}",
         file.File);
 }
 public void Add(ProjectFile file)
 {
     Files.Add(file);
 }