Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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)));
        }
Esempio n. 3
0
 public bool IsUpToDate(string markerFile)
 {
     return(!this.ForceOutOfDate && TaskUtils.IsUpToDate(this.AllFiles, markerFile));
 }