Beispiel #1
0
        public override void ExecuteCmdlet()
        {
            foreach (var arg in Arguments)
            {
                job.Arguments.Add(arg);
            }

            var cmdEnvDic = CommandEnvironment.ToDictionary(false);

            foreach (var cmdEnv in cmdEnvDic)
            {
                job.CommandEnvironment.Add(cmdEnv.Key, cmdEnv.Value.ToString());
            }

            var defineDic = Defines.ToDictionary(false);

            foreach (var define in defineDic)
            {
                job.Defines.Add(define.Key, define.Value.ToString());
            }

            foreach (var file in Files)
            {
                job.Files.Add(file);
            }

            WriteObject(job);
        }