Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/Scripts/GetFileCommand.Automation.cs
jonathan adamczewski f72e6cce86 AutomationTool:
Move Project class into a namespace (rather than global class), and consequent using changes to consumers of the class.

#jira none
#trivial

#ROBOMERGE-SOURCE: CL 16933076 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16933088 by jonathan adamczewski in ue5-release-engine-test branch]
2021-07-22 20:27:40 -04:00

41 lines
975 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Reflection;
using AutomationTool;
using UnrealBuildTool;
using EpicGames.Core;
namespace AutomationScripts
{
public partial class Project : CommandUtils
{
public static void GetFile(ProjectParams Params)
{
Params.ValidateAndLog();
if (string.IsNullOrEmpty(Params.GetFile))
{
return;
}
LogInformation("********** GETFILE COMMAND STARTED **********");
var FileName = Path.GetFileName(Params.GetFile);
var LocalFile = CombinePaths(CmdEnv.EngineSavedFolder, FileName);
var SC = CreateDeploymentContext(Params, false);
if (SC.Count == 0)
{
throw new AutomationException("Failed to create deployment context");
}
SC[0].StageTargetPlatform.GetTargetFile(Params.GetFile, LocalFile, Params);
LogInformation("********** GETFILE COMMAND COMPLETED **********");
}
}
}