public static void WiXLight(this ICakeContext context, string pattern, LightSettings settings = null) { if (context == null) { throw new ArgumentNullException("context"); } var files = context.Globber.GetFiles(pattern); WiXLight(context, files, settings ?? new LightSettings()); }
public static void WiXLight(this ICakeContext context, string pattern, LightSettings settings = null) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var files = context.Globber.GetFiles(pattern).ToArray(); if (files.Length == 0) { context.Log.Verbose("The provided pattern did not match any files."); return; } WiXLight(context, files, settings ?? new LightSettings()); }
public static void WiXLight(this ICakeContext context, IEnumerable <FilePath> objectFiles, LightSettings settings = null) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var runner = new LightRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Run(objectFiles, settings ?? new LightSettings()); }