private bool AreNonPartitionFilesUpToDate() { IEnumerable <string> files = TaskUtils.GetFullPaths(this.ResponseFiles, this.MSBuildProjectDirectory); if (this.EnumsJson != null) { files = files.Concat(new string[] { TaskUtils.GetFullPath(this.EnumsJson, this.MSBuildProjectDirectory) }); } return(TaskUtils.IsUpToDate(files, this.MarkerFileName)); }
public static bool IsUpToDate(IEnumerable <string> files, string checkFile) { if (!File.Exists(checkFile)) { return(false); } DateTime checkFileTime = File.GetLastWriteTimeUtc(checkFile); return(files.All(file => TaskUtils.IsUpToDate(file, checkFileTime))); }
public bool IsUpToDate(string markerFile) { return(!this.ForceOutOfDate && TaskUtils.IsUpToDate(this.AllFiles, markerFile)); }