示例#1
0
 public CommandArguments(BuildScriptArguments arguments)
 {
     MainCommands             = arguments.MainCommands;
     ExecuteTargetsInParallel = arguments.ExecuteTargetsInParallel;
     NoDependencies           = arguments.ExecuteTargetsInParallel;
     RethrowOnException       = arguments.RethrowOnException;
     ScriptArguments          = arguments.ScriptArguments;
     TargetsToExecute         = arguments.TargetsToExecute;
 }
示例#2
0
        public ITaskSession CreateTaskSession(BuildScriptArguments buildScriptArguments)
        {
            CommandArguments commandArguments = new CommandArguments(buildScriptArguments);

            return(new TaskSession(
                       LoggerFactory.CreateLogger <TaskSession>(),
                       new TargetTree(ServiceProvider, commandArguments),
                       commandArguments,
                       new DotnetTaskFactory(ServiceProvider),
                       new FluentInterfaceFactory(ServiceProvider),
                       ServiceProvider.GetService <IBuildPropertiesSession>()));
        }