Пример #1
0
	void LoadConfigItems () {
		OperationFunc f = new OperationFunc (LoadConfigItem);

		if (project.Operate ("/", OperationScope.Everywhere, "config", f)) {
			// FIXME
			Console.Error.WriteLine ("Error loading configuration items!");
		}
	}
Пример #2
0
	public WhatToDoNext DoConfigMode () {
		func = new OperationFunc (ConfigOperation);
		select_tag = "config";
		scope = OperationScope.Everywhere;
		return Check (SetMajorMode ("configure") || SetOperation ("configure"));
	}
Пример #3
0
	public WhatToDoNext DoXmlExportMode (string file) {
		func = new OperationFunc (ExportAsXml);
		select_tag = null;

		if (file == null || file.Length == 0)
			export_writer = new XmlTextWriter (Console.Out);
		else
			export_writer = new XmlTextWriter (file, System.Text.Encoding.Default);

		export_writer.Formatting = Formatting.Indented;

		return Check (SetMajorMode ("XML export") || SetOperation ("XML export"));
	}
Пример #4
0
	public WhatToDoNext DoDistMode (string dir) {
		func = new OperationFunc (WrenchOperations.Distribute);
		distdir = dir;
		select_tag = null;
		dist_mode = true;
		return Check (SetMajorMode ("distribute") || SetOperation ("distribute"));
	}
Пример #5
0
	public WhatToDoNext DoUninstallMode () {
#if EXPERIMENTAL_INSTALL
		func = new OperationFunc (DoRemoteInstall);
#else
		func = new OperationFunc (WrenchOperations.Uninstall);
#endif
		//select_tag = null;
		install_mode = true;
		install_is_uninstall = true;
		return Check (SetMajorMode ("uninstall") || SetOperation ("uninstall"));
	}
Пример #6
0
	public WhatToDoNext DoShowMode () {
		func = new OperationFunc (ShowOperation);
		return Check (SetOperation ("show"));
	}
Пример #7
0
	public WhatToDoNext DoDescribeMode () {
		func = new OperationFunc (DescribeInstall);
		return Check (SetOperation ("describe installation"));
	}
Пример #8
0
	public WhatToDoNext DoForceMode () {
		func = new OperationFunc (WrenchOperations.ForceBuild);
		return Check (SetOperation ("force build"));
	}
Пример #9
0
	public WhatToDoNext DoUncacheMode () {
		func = new OperationFunc (WrenchOperations.Uncache);
		return Check (SetOperation ("uncache"));
	}
Пример #10
0
	public WhatToDoNext DoCleanMode () {
		func = new OperationFunc (WrenchOperations.Clean);
		return Check (SetOperation ("clean"));
	}
Пример #11
0
	public WhatToDoNext DoListMode () {
		func = new OperationFunc (PrintOperation);
		return Check (SetOperation ("list"));
	}
Пример #12
0
	public MBuildClient () : base () {
		BreakSingleDashManyLettersIntoManyOptions = true;
		ParsingMode = OptionsParsingMode.Linux;

		numbuilt = 0;
		numskipped = 0;
		numcleaned = 0;
		numdisted = 0;
		numinstalled = 0;

		func = new OperationFunc (WrenchOperations.Build);
	}