protected override bool PerformPrequisites() { // build editor BuildTarget Command = new BuildTarget(); Command.ProjectName = ProjectFile != null?ProjectFile.GetFileNameWithoutAnyExtensions() : null; Command.Platforms = BuildHostPlatform.Current.Platform.ToString(); Command.Targets = "Editor"; Command.NoTools = false; if (Command.Execute() != ExitCode.Success) { return(false); } // if they want a hot DDC then do the test one time with no timing if (TaskOptions.HasFlag(DDCTaskOptions.HotDDC)) { RunEditorAndWaitForMapLoad(true); } base.PerformPrequisites(); return(true); }
protected override bool PerformPrequisites() { // build editor BuildTarget Command = new BuildTarget(); Command.ProjectName = ProjectName; Command.Platforms = BuildHostPlatform.Current.Platform.ToString(); Command.Targets = "Editor"; if (Command.Execute() != ExitCode.Success) { return(false); } // Do a cook to make sure the remote ddc is warm? if (TaskOptions.HasFlag(DDCTaskOptions.HotDDC)) { // will throw an exception if it fails CommandUtils.RunCommandlet(ProjectFile, "UE4Editor-Cmd.exe", "Cook", String.Format("-TargetPlatform={0} ", CookPlatformName)); } base.PerformPrequisites(); return(true); }
protected override bool PerformTask() { ExitCode Result = Command.Execute(); return(Result == ExitCode.Success); }