public bool CheckDependencies(ProjectItem projectItem) { var filename = projectItem.FileName(); var engine = EngineResolver.GetEngineByFilename(filename); if (engine == null) { return(false); } var contents = FileHandler.GetContents(filename); SaveDependencies(projectItem, filename, contents, engine); return(true); }
public IEnumerable <FileAssociation> Run(ProjectItem projectItem) { var filename = projectItem.FileName(); var engine = EngineResolver.GetEngineByFilename(filename); var result = new List <FileAssociation>(); TaskList.Remove(filename); if (engine != null) { result.AddRange(ProcessEngine(projectItem, filename, engine)); } var associations = RunDependencies(filename); if (associations != null) { result.AddRange(associations); } return(result); }