public override bool Validate() { return (AssemblyPath.IsExisting && new FsPath(Path.ChangeExtension(AssemblyPath.ToString(), "xml")).IsExisting && !FsPath.IsEmptyPath(OutputDirectory)); }
public override bool Validate() { return (AssemblyPath.IsExisting && XmlPath.IsExisting && !FsPath.IsEmptyPath(OutputDirectory)); }
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); }); }