Exemplo n.º 1
0
	void LoadConfigItems () {
		OperationFunc f = new OperationFunc (LoadConfigItem);

		if (project.Operate ("/", OperationScope.Everywhere, "config", f)) {
			// FIXME
			Console.Error.WriteLine ("Error loading configuration items!");
		}
	}
Exemplo n.º 2
0
	public WhatToDoNext DoConfigMode () {
		func = new OperationFunc (ConfigOperation);
		select_tag = "config";
		scope = OperationScope.Everywhere;
		return Check (SetMajorMode ("configure") || SetOperation ("configure"));
	}
Exemplo n.º 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"));
	}
Exemplo n.º 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"));
	}
Exemplo n.º 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"));
	}
Exemplo n.º 6
0
	public WhatToDoNext DoShowMode () {
		func = new OperationFunc (ShowOperation);
		return Check (SetOperation ("show"));
	}
Exemplo n.º 7
0
	public WhatToDoNext DoDescribeMode () {
		func = new OperationFunc (DescribeInstall);
		return Check (SetOperation ("describe installation"));
	}
Exemplo n.º 8
0
	public WhatToDoNext DoForceMode () {
		func = new OperationFunc (WrenchOperations.ForceBuild);
		return Check (SetOperation ("force build"));
	}
Exemplo n.º 9
0
	public WhatToDoNext DoUncacheMode () {
		func = new OperationFunc (WrenchOperations.Uncache);
		return Check (SetOperation ("uncache"));
	}
Exemplo n.º 10
0
	public WhatToDoNext DoCleanMode () {
		func = new OperationFunc (WrenchOperations.Clean);
		return Check (SetOperation ("clean"));
	}
Exemplo n.º 11
0
	public WhatToDoNext DoListMode () {
		func = new OperationFunc (PrintOperation);
		return Check (SetOperation ("list"));
	}
Exemplo n.º 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);
	}