Exemple #1
0
        public Script Build(FileInfo file, BuildOptions buildOptions)
        {
            Script         script = this.BuildScript(file, buildOptions);
            ScriptKey      key    = new ScriptKey(file);
            ScriptSettings scriptSettings;

            if (!this.settings.TryGetValue(key, out scriptSettings))
            {
                scriptSettings = new ScriptSettings(file);
                this.settings.Add(key, scriptSettings);
            }
            scriptSettings.Script = script;
            if (script != null)
            {
                scriptSettings.Merge(script);
                scriptSettings.Populate(script);
                scriptSettings.Save();
            }
            return(script);
        }
 public ScriptSettingsTypeDescriptor(ScriptSettings settings)
 {
     this.settings = settings;
 }
		public ScriptSettingsTypeDescriptor(ScriptSettings settings)
		{
			this.settings = settings;
		}