2018-04-03 15:23:51 -04:00
|
|
|
|
// Copyright 1998-2018 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 Tools.DotNETCommon;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class Project : CommandUtils
|
|
|
|
|
|
{
|
|
|
|
|
|
#region GetFile Command
|
|
|
|
|
|
|
|
|
|
|
|
public static void GetFile(ProjectParams Params)
|
|
|
|
|
|
{
|
|
|
|
|
|
Params.ValidateAndLog();
|
|
|
|
|
|
if (string.IsNullOrEmpty(Params.GetFile))
|
|
|
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-08-16 13:53:43 -04:00
|
|
|
|
LogInformation("********** GETFILE COMMAND STARTED **********");
|
2018-04-03 15:23:51 -04:00
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
2018-08-16 13:53:43 -04:00
|
|
|
|
LogInformation("********** GETFILE COMMAND COMPLETED **********");
|
2018-04-03 15:23:51 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|