예제 #1
0
파일: WiXAliases.cs 프로젝트: stgwilli/cake
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
        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());
        }