protected override void ProcessRecord() { JobCluster cluster = new JobCluster(this, MDPath, Debug); RegistPrisetVars(cluster); cluster.Process(); }
/// <summary> /// Preset変数を登録 /// </summary> /// <param name="cluster"></param> private void RegistPrisetVars(JobCluster cluster) { // -Environmentオプション if (Environment != null && Environment.Length > 0) { foreach (string env in Environment) { string tempEnvName = env.Substring(0, env.IndexOf("=")); if (tempEnvName.Contains(" ")) { continue; } string tempEnvValue = env.Substring(env.IndexOf("=") + 1); cluster.AddPresetVar(tempEnvName, tempEnvValue); } } }