Including a trailing slash ("\") at the end of a BuildCookRun command sent to UAT results in UAT receiving a malformed command. If the command ends with a slash, the resulting command that UAT receives has a space added before the slash and "-compile" added immediately after the slash. The slash should instead be removed from the command before it is sent to UAT.

No. The same behavior occurs in 4.20.3. A different error prevented testing in Main.

Steps to Reproduce
  1. Create a new Basic Code project.
  2. Build the project for either the Test or Development configuration.
  3. Open a Windows command line window.
  4. Run the following command:
    Path\To\RunUAT.bat BuildCookRun -project="Path\to\Project.uproject" -noP4 -platform=Win64 -clientconfig=<Either Test or Development depending on what you used in step 2> -serverconfig=<Same as clientconfig> -skipcook -stage -pak -package -compressed -archive -archivedirectory=Path\to\destination\directory\
    • Make sure a trailing slash ("\") is included at the end of the command.
  5. Run the command.

The process fails. The end of the command that is sent to UAT shows:

...-archivedirectory=Path\to\destination\directory \-compile

The process completes successfully.

Make sure there is no trailing slash at the end of the command.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-70116 in the post.

Login to Vote

ComponentUE - Foundation - Cpp Tools
Affects Versions4.
Target Fix4.22
Fix Commit4676467
Main Commit5915479
CreatedFeb 14, 2019
ResolvedFeb 14, 2019
UpdatedApr 16, 2019
View Jira Issue