/// <summary> /// Constructs project manager with OutputPrx writing to console. /// </summary> /// <param name="args">A string[] representing arguments from command line.</param> /// <param name="options">A <see cref="T:Ferda.ProjectManager.ProjectManagerOptions"/> /// representing options for ProjectManaget</param> public ProjectManager(string[] args, ProjectManagerOptions options) { this.options = options; if(options.StartIceGridLocaly) StartIceGrid(options.IceBinPath, options.IceGridAsService, options.IceGridWorkingDirectory, options.IceGridApplicationXmlFilePath); modulesManager = new Ferda.ModulesManager.ModulesManager(args, options.LocalePrefs); archive = new Archive(views); }
public void SetUp() { Debug.Listeners.Clear(); TextWriterTraceListener t = new TextWriterTraceListener("log.txt"); Debug.Listeners.Add(t); Debug.AutoFlush = true; Debug.WriteLine("starting projectManager..."); ProjectManagerOptions options = new ProjectManagerOptions(); options.StartIceGridLocaly = true; options.StopIceGridLocaly = true; options.IceGridAsService = false; options.LocalePrefs = new string[]{"en-US","cs-CZ"}; options.SentenceForWait = "[ icegridnode: Server: changed server `0' state to `Inactive' ]"; projectManager = new ProjectManager(new string[0], options); }