public int Execute(Execution execution) { if (!File.Exists(Path.Combine(execution.WorkingDirectory, "Build", "Module.xml"))) { _knownToolProvider.GetToolExecutablePath("Protobuild.Manager"); var subexecution = new Execution(); subexecution.WorkingDirectory = execution.WorkingDirectory; subexecution.ExecuteProjectName = "Protobuild.Manager"; subexecution.ExecuteProjectArguments = new string[0]; return(_executeCommand.Execute(subexecution)); } var module = ModuleInfo.Load(Path.Combine(execution.WorkingDirectory, "Build", "Module.xml")); if (module.DefaultAction == "automated-build") { return(_automatedBuildController.Execute(execution.WorkingDirectory, "automated.build")); } return(this.m_ActionDispatch.DefaultAction( execution.WorkingDirectory, module, null, execution.EnabledServices.ToArray(), execution.DisabledServices.ToArray(), execution.ServiceSpecificationPath, execution.DebugServiceResolution, execution.DisablePackageResolution, execution.DisableHostProjectGeneration, execution.UseTaskParallelisation, execution.SafePackageResolution, execution.DebugProjectGeneration) ? 0 : 1); }
public int Execute(Execution execution) { if (!File.Exists(Path.Combine("Build", "Module.xml"))) { _knownToolProvider.GetToolExecutablePath("Protobuild.Manager"); var subexecution = new Execution(); subexecution.ExecuteProjectName = "Protobuild.Manager"; subexecution.ExecuteProjectArguments = new string[0]; return(_executeCommand.Execute(subexecution)); } return(this.m_ActionDispatch.DefaultAction( ModuleInfo.Load(Path.Combine("Build", "Module.xml")), enabledServices: execution.EnabledServices.ToArray(), disabledServices: execution.DisabledServices.ToArray(), serviceSpecPath: execution.ServiceSpecificationPath, debugServiceResolution: execution.DebugServiceResolution, disablePackageResolution: execution.DisablePackageResolution, disableHostPlatformGeneration: execution.DisableHostProjectGeneration) ? 0 : 1); }