예제 #1
0
 public override bool Validate()
 {
     return
         (AssemblyPath.IsExisting &&
          new FsPath(Path.ChangeExtension(AssemblyPath.ToString(), "xml")).IsExisting &&
          !FsPath.IsEmptyPath(OutputDirectory));
 }
예제 #2
0
 public override bool Validate()
 {
     return
         (AssemblyPath.IsExisting &&
          XmlPath.IsExisting &&
          !FsPath.IsEmptyPath(OutputDirectory));
 }
예제 #3
0
        public void RunStep(RuntimeSettings settings, ILog log)
        {
            log.Info("Processing images...");
            if (FsPath.IsEmptyPath(settings.ImageDirectory))
            {
                log.Warning("Images directory is empty string. Skipping image copy & inline step");
                return;
            }

            var targetdir = settings.OutputDirectory.Combine(settings.ImageDirectory.Filename);

            Parallel.ForEach(settings.ImageDirectory.GetAllFiles(), file =>
            {
                ProcessImage(file, settings, targetdir, log);
            });
        }